forked from OSchip/llvm-project
[IRBuilder] Fix -Wunused-variable in non-assertion build. NFC
This commit is contained in:
parent
839ac62c50
commit
057fb8153a
|
@ -716,6 +716,7 @@ CallInst *IRBuilderBase::CreateMaskedExpandLoad(Type *Ty, Value *Ptr,
|
||||||
assert(PtrTy->isOpaqueOrPointeeTypeMatches(
|
assert(PtrTy->isOpaqueOrPointeeTypeMatches(
|
||||||
cast<FixedVectorType>(Ty)->getElementType()) &&
|
cast<FixedVectorType>(Ty)->getElementType()) &&
|
||||||
"Wrong element type");
|
"Wrong element type");
|
||||||
|
(void)PtrTy;
|
||||||
assert(Mask && "Mask should not be all-ones (null)");
|
assert(Mask && "Mask should not be all-ones (null)");
|
||||||
if (!PassThru)
|
if (!PassThru)
|
||||||
PassThru = UndefValue::get(Ty);
|
PassThru = UndefValue::get(Ty);
|
||||||
|
@ -738,6 +739,7 @@ CallInst *IRBuilderBase::CreateMaskedCompressStore(Value *Val, Value *Ptr,
|
||||||
assert(PtrTy->isOpaqueOrPointeeTypeMatches(
|
assert(PtrTy->isOpaqueOrPointeeTypeMatches(
|
||||||
cast<FixedVectorType>(DataTy)->getElementType()) &&
|
cast<FixedVectorType>(DataTy)->getElementType()) &&
|
||||||
"Wrong element type");
|
"Wrong element type");
|
||||||
|
(void)PtrTy;
|
||||||
assert(Mask && "Mask should not be all-ones (null)");
|
assert(Mask && "Mask should not be all-ones (null)");
|
||||||
Type *OverloadedTypes[] = {DataTy};
|
Type *OverloadedTypes[] = {DataTy};
|
||||||
Value *Ops[] = {Val, Ptr, Mask};
|
Value *Ops[] = {Val, Ptr, Mask};
|
||||||
|
|
Loading…
Reference in New Issue