[llvm] b605c56 - [ARM] Silence warning in Release builds

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 06:31:15 PDT 2020


Author: Benjamin Kramer
Date: 2020-04-01T15:29:19+02:00
New Revision: b605c56b0fac74584156f058da19496b6d7cae8f

URL: https://github.com/llvm/llvm-project/commit/b605c56b0fac74584156f058da19496b6d7cae8f
DIFF: https://github.com/llvm/llvm-project/commit/b605c56b0fac74584156f058da19496b6d7cae8f.diff

LOG: [ARM] Silence warning in Release builds

llvm/lib/Target/ARM/MVEVPTBlockPass.cpp:175:37: error: unused variable 'BlockBeg' [-Werror,-Wunused-variable]
  MachineBasicBlock::instr_iterator BlockBeg = Iter;
                                    ^

Added: 
    

Modified: 
    llvm/lib/Target/ARM/MVEVPTBlockPass.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp b/llvm/lib/Target/ARM/MVEVPTBlockPass.cpp
index 30964c361028..2de9829480db 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<MachineInstr *> &DeadInstructions) {
   MachineBasicBlock::instr_iterator BlockBeg = Iter;
+  (void)BlockBeg;
   assert(getVPTInstrPredicate(*Iter) == ARMVCC::Then &&
          "Expected a Predicated Instruction");
 


        


More information about the llvm-commits mailing list