[llvm] r267128 - Fix -Wunused-variable in non-asserts build.

Eric Liu via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 02:50:34 PDT 2016


Author: ioeric
Date: Fri Apr 22 04:50:31 2016
New Revision: 267128

URL: http://llvm.org/viewvc/llvm-project?rev=267128&view=rev
Log:
Fix -Wunused-variable in non-asserts build.

Modified:
    llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp

Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp?rev=267128&r1=267127&r2=267128&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp Fri Apr 22 04:50:31 2016
@@ -444,6 +444,7 @@ bool RegisterBankInfo::InstructionMappin
   assert(MI.getParent() && MI.getParent()->getParent() &&
          "MI must be connected to a MachineFunction");
   const MachineFunction &MF = *MI.getParent()->getParent();
+  (void)MF;
 
   for (unsigned Idx = 0; Idx < NumOperands; ++Idx) {
     const MachineOperand &MO = MI.getOperand(Idx);




More information about the llvm-commits mailing list