Fix crash when using launch with non-task-qualified function
This commit is contained in:
4
expr.cpp
4
expr.cpp
@@ -3552,9 +3552,11 @@ FunctionCallExpr::TypeCheck() {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (isLaunch)
|
if (isLaunch) {
|
||||||
Error(pos, "\"launch\" expression illegal with non-\"task\"-"
|
Error(pos, "\"launch\" expression illegal with non-\"task\"-"
|
||||||
"qualified function.");
|
"qualified function.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
AssertPos(pos, launchCountExpr == NULL);
|
AssertPos(pos, launchCountExpr == NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user