Skip to content

Commit 9e362e5

Browse files
committed
Fix -Wunused-vairable on release build, NFC
1 parent 3f370a2 commit 9e362e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4949,8 +4949,8 @@ OpenMPIRBuilder::createAtomicRead(const LocationDescription &Loc,
49494949
if (!updateToLocation(Loc))
49504950
return Loc.IP;
49514951

4952-
Type *XTy = X.Var->getType();
4953-
assert(XTy->isPointerTy() && "OMP Atomic expects a pointer to target memory");
4952+
assert(X.Var->getType()->isPointerTy() &&
4953+
"OMP Atomic expects a pointer to target memory");
49544954
Type *XElemTy = X.ElemTy;
49554955
assert((XElemTy->isFloatingPointTy() || XElemTy->isIntegerTy() ||
49564956
XElemTy->isPointerTy()) &&

0 commit comments

Comments
 (0)