[clang] b1863d8 - [Clang][OpenMP] Remove use of getPointerElementType()
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 23 07:14:33 PST 2022
Author: Nikita Popov
Date: 2022-02-23T16:14:24+01:00
New Revision: b1863d82454b2905db8b492bea0ce8a260362645
URL: https://github.com/llvm/llvm-project/commit/b1863d82454b2905db8b492bea0ce8a260362645
DIFF: https://github.com/llvm/llvm-project/commit/b1863d82454b2905db8b492bea0ce8a260362645.diff
LOG: [Clang][OpenMP] Remove use of getPointerElementType()
This new pointer element type use snuck in via D118632.
Added:
Modified:
clang/lib/CodeGen/CGStmtOpenMP.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 4bdeff4d41f34..5f6ab2769d033 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -6042,12 +6042,12 @@ static void emitOMPAtomicCompareExpr(CodeGenFunction &CGF,
}
LValue XLVal = CGF.EmitLValue(X);
- llvm::Value *XPtr = XLVal.getPointer(CGF);
+ Address XAddr = XLVal.getAddress(CGF);
llvm::Value *EVal = CGF.EmitScalarExpr(E);
llvm::Value *DVal = D ? CGF.EmitScalarExpr(D) : nullptr;
llvm::OpenMPIRBuilder::AtomicOpValue XOpVal{
- XPtr, XPtr->getType()->getPointerElementType(),
+ XAddr.getPointer(), XAddr.getElementType(),
X->getType().isVolatileQualified(),
X->getType()->hasSignedIntegerRepresentation()};
More information about the cfe-commits
mailing list