================
@@ -73,6 +72,9 @@ ExprResult SemaCUDA::ActOnExecConfigExpr(Scope *S, 
SourceLocation LLLLoc,
         // the host-side kernel call.
         if (getLangOpts().HIP)
           IsDeviceKernelCall = false;
+      } else if (!Caller && getLangOpts().HIP &&
----------------
AdityaSinha149 wrote:

Updated the condition to trigger only when the current context is a top-level 
statement declaration (`TopLevelStmtDecl`), rather than for any null caller. 
Thanks for the review.

https://github.com/llvm/llvm-project/pull/218659
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to