[llvm-commits] [llvm] r154759 - /llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sat Apr 14 22:33:43 PDT 2012
Author: chapuni
Date: Sun Apr 15 00:33:43 2012
New Revision: 154759
URL: http://llvm.org/viewvc/llvm-project?rev=154759&view=rev
Log:
HexagonCopyToCombine.cpp: Silence two warnings, -Wunused-variable, with -Asserts.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp?rev=154759&r1=154758&r2=154759&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonCopyToCombine.cpp Sun Apr 15 00:33:43 2012
@@ -213,6 +213,7 @@
if (KillingInstr) {
bool Added = KillingInstr->addRegisterKilled(KilledOperand, TRI, true);
assert(Added && "Must successfully update kill flag");
+ (void)Added;
removeKillInfo(I2, KilledOperand);
}
DoInsertAtI1 = true;
@@ -268,6 +269,7 @@
// the new COMBINE instruction.
bool Added = I1->addRegisterKilled(KilledOperand, TRI);
assert(Added && "Must successfully update kill flag");
+ (void)Added;
}
DoInsertAtI1 = false;
}
More information about the llvm-commits
mailing list