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

Jessica Clarke via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 12 13:00: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());
----------------
jrtc27 wrote:

Running clang-format on your commit (but just your commit, and only accepting changes to the lines you've changed, i.e. just this line) to fix this doesn't need pre-commit review

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


More information about the cfe-commits mailing list