[clang] [clang][OpenMP][SPIR-V] Fix addrspace of pointer kernel arguments (PR #157172)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 9 07:53:57 PDT 2025


================
@@ -132,10 +132,12 @@ ABIArgInfo SPIRVABIInfo::classifyReturnType(QualType RetTy) const {
 }
 
 ABIArgInfo SPIRVABIInfo::classifyKernelArgumentType(QualType Ty) const {
-  if (getContext().getLangOpts().CUDAIsDevice) {
+  if (getContext().getLangOpts().CUDAIsDevice ||
+      getContext().getLangOpts().OpenMPIsTargetDevice) {
----------------
sarnex wrote:

Sorry that part of the comment I removed was not only relevant but exposed a possible issue, fixed in latest commit.

https://github.com/llvm/llvm-project/pull/157172


More information about the cfe-commits mailing list