Skip to content

Commit

Permalink
[ARM] Silence warning in Release builds
Browse files Browse the repository at this point in the history
llvm/lib/Target/ARM/MVEVPTBlockPass.cpp:175:37: error: unused variable 'BlockBeg' [-Werror,-Wunused-variable]
  MachineBasicBlock::instr_iterator BlockBeg = Iter;
                                    ^
  • Loading branch information
d0k committed Apr 1, 2020
1 parent 3a78f44 commit b605c56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/ARM/MVEVPTBlockPass.cpp
Expand Up @@ -173,6 +173,7 @@ CreateVPTBlock(MachineBasicBlock::instr_iterator &Iter,
MachineBasicBlock::instr_iterator EndIter,
SmallVectorImpl<MachineInstr *> &DeadInstructions) {
MachineBasicBlock::instr_iterator BlockBeg = Iter;
(void)BlockBeg;
assert(getVPTInstrPredicate(*Iter) == ARMVCC::Then &&
"Expected a Predicated Instruction");

Expand Down

0 comments on commit b605c56

Please sign in to comment.