From: Richard Trieu Date: Mon, 28 Sep 2015 22:54:43 +0000 (+0000) Subject: Fix unused variable warning in non-debug builds. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7df74560640c58b524620fc11eb740cac685ba13;p=oota-llvm.git Fix unused variable warning in non-debug builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248754 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetInstrInfo.cpp b/lib/CodeGen/TargetInstrInfo.cpp index e51f46ac5af..bbbdc091083 100644 --- a/lib/CodeGen/TargetInstrInfo.cpp +++ b/lib/CodeGen/TargetInstrInfo.cpp @@ -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.");