[OMPIRBuilder] Avoid use of getPointerElementType()

Looks like I missed this call when removing others in this file.
This commit is contained in:
Nikita Popov 2022-02-07 14:22:34 +01:00
parent 77a0da926c
commit b7767c71c9
1 changed files with 1 additions and 1 deletions

View File

@ -3451,7 +3451,7 @@ OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createAtomicCapture(
Type *XTy = X.Var->getType(); Type *XTy = X.Var->getType();
assert(XTy->isPointerTy() && assert(XTy->isPointerTy() &&
"OMP Atomic expects a pointer to target memory"); "OMP Atomic expects a pointer to target memory");
Type *XElemTy = XTy->getPointerElementType(); Type *XElemTy = X.ElemTy;
assert((XElemTy->isFloatingPointTy() || XElemTy->isIntegerTy() || assert((XElemTy->isFloatingPointTy() || XElemTy->isIntegerTy() ||
XElemTy->isPointerTy()) && XElemTy->isPointerTy()) &&
"OMP atomic capture expected a scalar type"); "OMP atomic capture expected a scalar type");