[llvm-commits] [llvm] r52590 - /llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp
Chris Lattner
sabre at nondot.org
Sat Jun 21 12:49:01 PDT 2008
Author: lattner
Date: Sat Jun 21 14:49:01 2008
New Revision: 52590
URL: http://llvm.org/viewvc/llvm-project?rev=52590&view=rev
Log:
Fix warning when assertions disabled.
Modified:
llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp
Modified: llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp?rev=52590&r1=52589&r2=52590&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/DemoteRegToStack.cpp Sat Jun 21 14:49:01 2008
@@ -127,7 +127,7 @@
for (unsigned i = 0, e = P->getNumIncomingValues(); i < e; ++i) {
if (InvokeInst *II = dyn_cast<InvokeInst>(P->getIncomingValue(i))) {
assert(II->getParent() != P->getIncomingBlock(i) &&
- "Invoke edge not supported yet");
+ "Invoke edge not supported yet"); II=II;
}
new StoreInst(P->getIncomingValue(i), Slot,
P->getIncomingBlock(i)->getTerminator());
More information about the llvm-commits
mailing list