diff --git a/expr.cpp b/expr.cpp index 78c3cfd6..358882b5 100644 --- a/expr.cpp +++ b/expr.cpp @@ -3552,9 +3552,11 @@ FunctionCallExpr::TypeCheck() { return NULL; } else { - if (isLaunch) + if (isLaunch) { Error(pos, "\"launch\" expression illegal with non-\"task\"-" "qualified function."); + return NULL; + } AssertPos(pos, launchCountExpr == NULL); } }