[clang] e3298bb - fixup! [Clang][OpenMP] Clang adding the addrSpace according to DataLayout fix (#65483)
Aaron Jarmusch via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 12 13:52:50 PDT 2023
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());
More information about the cfe-commits
mailing list