Author: Aaron Jarmusch Date: 2023-09-12T20:52:33Z New Revision: e3298bb27543b1d4c4d165d8e2f87593c3df9d27
URL: https://github.com/llvm/llvm-project/commit/e3298bb27543b1d4c4d165d8e2f87593c3df9d27 DIFF: https://github.com/llvm/llvm-project/commit/e3298bb27543b1d4c4d165d8e2f87593c3df9d27.diff LOG: fixup! [Clang][OpenMP] Clang adding the addrSpace according to DataLayout fix (#65483) Added: Modified: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp Removed: ################################################################################ diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp index 2e022b5cdf762f4..c3b638dd2f0479f 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp @@ -3362,7 +3362,8 @@ Address CGOpenMPRuntimeGPU::getAddressOfLocalVariable(CodeGenFunction &CGF, break; case OMPAllocateDeclAttr::OMPLargeCapMemAlloc: case OMPAllocateDeclAttr::OMPCGroupMemAlloc: - AS = getLangASFromTargetAS(CGF.CGM.getModule().getDataLayout().getDefaultGlobalsAddressSpace()); + AS = getLangASFromTargetAS( + CGF.CGM.getModule().getDataLayout().getDefaultGlobalsAddressSpace()); break; } llvm::Type *VarTy = CGF.ConvertTypeForMem(VD->getType()); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits