[clang] [Clang][OpenMP] Clang adding the addrSpace according to DataLayout fix (PR #65483)

Aaron Jarmusch via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 12 12:56:27 PDT 2023


================
@@ -3362,6 +3362,7 @@ Address CGOpenMPRuntimeGPU::getAddressOfLocalVariable(CodeGenFunction &CGF,
       break;
     case OMPAllocateDeclAttr::OMPLargeCapMemAlloc:
     case OMPAllocateDeclAttr::OMPCGroupMemAlloc:
+      AS = getLangASFromTargetAS(CGF.CGM.getModule().getDataLayout().getDefaultGlobalsAddressSpace());
----------------
ajarmusch wrote:

ah I see, what would be the best way to update that line? Push a commit or create another PR?

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


More information about the cfe-commits mailing list