Fix warning when assertions disabled.
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jun 2008 19:49:01 +0000 (19:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jun 2008 19:49:01 +0000 (19:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52590 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/DemoteRegToStack.cpp

index c123c0301f7da29a3e5bca68ec2ecb5be7a3dcb4..b8dd75413342f4214f419ca4c20116d00fe0e85a 100644 (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());