From caaee0b6661254e86e5b85c73e6c8faea8aae6b8 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Wed, 29 Aug 2012 09:06:12 -0700 Subject: [PATCH] Fix crash when using launch with non-task-qualified function --- expr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } }