Skip to content

Commit

Permalink
[IRBuilder] Fix -Wunused-variable in non-assertion build. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Sep 15, 2022
1 parent 839ac62 commit 057fb81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/IR/IRBuilder.cpp
Expand Up @@ -716,6 +716,7 @@ CallInst *IRBuilderBase::CreateMaskedExpandLoad(Type *Ty, Value *Ptr,
assert(PtrTy->isOpaqueOrPointeeTypeMatches(
cast<FixedVectorType>(Ty)->getElementType()) &&
"Wrong element type");
(void)PtrTy;
assert(Mask && "Mask should not be all-ones (null)");
if (!PassThru)
PassThru = UndefValue::get(Ty);
Expand All @@ -738,6 +739,7 @@ CallInst *IRBuilderBase::CreateMaskedCompressStore(Value *Val, Value *Ptr,
assert(PtrTy->isOpaqueOrPointeeTypeMatches(
cast<FixedVectorType>(DataTy)->getElementType()) &&
"Wrong element type");
(void)PtrTy;
assert(Mask && "Mask should not be all-ones (null)");
Type *OverloadedTypes[] = {DataTy};
Value *Ops[] = {Val, Ptr, Mask};
Expand Down

0 comments on commit 057fb81

Please sign in to comment.