Fix warning when assertions disabled.

llvm-svn: 52590
This commit is contained in:
Chris Lattner 2008-06-21 19:49:01 +00:00
parent 76d8bbc7c2
commit 5b0bc729b3

View File

@ -127,7 +127,7 @@ AllocaInst* llvm::DemotePHIToStack(PHINode *P, Instruction *AllocaPoint) {
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());