From 7df74560640c58b524620fc11eb740cac685ba13 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Mon, 28 Sep 2015 22:54:43 +0000 Subject: [PATCH] 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 --- lib/CodeGen/TargetInstrInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."); -- 2.34.1