Fix unused variable warning in non-debug builds.
authorRichard Trieu <rtrieu@google.com>
Mon, 28 Sep 2015 22:54:43 +0000 (22:54 +0000)
committerRichard Trieu <rtrieu@google.com>
Mon, 28 Sep 2015 22:54:43 +0000 (22:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248754 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetInstrInfo.cpp

index e51f46ac5afc70140ed8c1dc7c99e4b0d264298d..bbbdc09108351bf86dae69e57ed508c1ae7628e5 100644 (file)
@@ -128,7 +128,8 @@ MachineInstr *TargetInstrInfo::commuteInstructionImpl(MachineInstr *MI,
     // No idea how to commute this instruction. Target should implement its own.
     return nullptr;
 
-  unsigned CommutableOpIdx1 = Idx1, CommutableOpIdx2 = Idx2;
+  unsigned CommutableOpIdx1 = Idx1; (void)CommutableOpIdx1;
+  unsigned CommutableOpIdx2 = Idx2; (void)CommutableOpIdx2;
   assert(findCommutedOpIndices(MI, CommutableOpIdx1, CommutableOpIdx2) &&
          CommutableOpIdx1 == Idx1 && CommutableOpIdx2 == Idx2 &&
          "TargetInstrInfo::CommuteInstructionImpl(): not commutable operands.");