diff --git a/llvm/lib/IR/IRBuilder.cpp b/llvm/lib/IR/IRBuilder.cpp index 8a46a71186c89..438d04fcadeb4 100644 --- a/llvm/lib/IR/IRBuilder.cpp +++ b/llvm/lib/IR/IRBuilder.cpp @@ -716,6 +716,7 @@ CallInst *IRBuilderBase::CreateMaskedExpandLoad(Type *Ty, Value *Ptr, assert(PtrTy->isOpaqueOrPointeeTypeMatches( cast(Ty)->getElementType()) && "Wrong element type"); + (void)PtrTy; assert(Mask && "Mask should not be all-ones (null)"); if (!PassThru) PassThru = UndefValue::get(Ty); @@ -738,6 +739,7 @@ CallInst *IRBuilderBase::CreateMaskedCompressStore(Value *Val, Value *Ptr, assert(PtrTy->isOpaqueOrPointeeTypeMatches( cast(DataTy)->getElementType()) && "Wrong element type"); + (void)PtrTy; assert(Mask && "Mask should not be all-ones (null)"); Type *OverloadedTypes[] = {DataTy}; Value *Ops[] = {Val, Ptr, Mask};