summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-09-28 22:54:43 +0000
committerRichard Trieu <rtrieu@google.com>2015-09-28 22:54:43 +0000
commite778e87d2a2689f782730814a20d5e0fd69b1486 (patch)
tree6b0b8f40db6086c7415f3db3bb21f31f18aa56fc /llvm
parent236cfdc4be85e3d62f356ee4f0a072e927a6561f (diff)
downloadbcm5719-llvm-e778e87d2a2689f782730814a20d5e0fd69b1486.tar.gz
bcm5719-llvm-e778e87d2a2689f782730814a20d5e0fd69b1486.zip
Fix unused variable warning in non-debug builds.
llvm-svn: 248754
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/TargetInstrInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp
index e51f46ac5af..bbbdc091083 100644
--- a/llvm/lib/CodeGen/TargetInstrInfo.cpp
+++ b/llvm/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.");
OpenPOWER on IntegriCloud