[clang] [clang][Sema] Allow null caller for HIP kernel launch in incremental mode (PR #218659)

Aditya Sinha via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 23:07:44 PDT 2026


================
@@ -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


More information about the cfe-commits mailing list