diff --git a/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp b/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp index 30964c3610280..2de9829480db4 100644 --- a/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp +++ b/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp @@ -173,6 +173,7 @@ CreateVPTBlock(MachineBasicBlock::instr_iterator &Iter, MachineBasicBlock::instr_iterator EndIter, SmallVectorImpl &DeadInstructions) { MachineBasicBlock::instr_iterator BlockBeg = Iter; + (void)BlockBeg; assert(getVPTInstrPredicate(*Iter) == ARMVCC::Then && "Expected a Predicated Instruction");