Skip to content

Commit

Permalink
[Clang][OpenMP] Remove use of getPointerElementType()
Browse files Browse the repository at this point in the history
This new pointer element type use snuck in via D118632.
  • Loading branch information
nikic committed Feb 23, 2022
1 parent 4b86d55 commit b1863d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/CGStmtOpenMP.cpp
Expand Up @@ -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()};

Expand Down

0 comments on commit b1863d8

Please sign in to comment.