Fix unused variable warning in non-debug builds.

llvm-svn: 248754
This commit is contained in:
Richard Trieu 2015-09-28 22:54:43 +00:00
parent 236cfdc4be
commit e778e87d2a
1 changed files with 2 additions and 1 deletions

View 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.");