Fix crash when using launch with non-task-qualified function

This commit is contained in:
Matt Pharr
2012-08-29 09:06:12 -07:00
parent f2f470f369
commit caaee0b666

View File

@@ -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);
} }
} }