summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index 2891c316f..6fed59621 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -2845,6 +2845,9 @@ Expr* SemanticsVisitor::CheckInvokeExprWithCheckedOperands(InvokeExpr* expr)
auto rs = ResolveInvoke(expr);
if (auto invoke = as<InvokeExpr>(rs))
{
+ if (!invoke->functionExpr)
+ return rs;
+
// if this is still an invoke expression, test arguments passed to inout/out parameter are
// LValues
if (auto funcType = as<FuncType>(invoke->functionExpr->type))