aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/DemoteRegToStack.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-21 19:49:01 +0000
committerChris Lattner <sabre@nondot.org>2008-06-21 19:49:01 +0000
commit72290d5156b835e2f748d4f197313757ca978309 (patch)
treea6b567527545c9a71316223699ec6b1e6bef1027 /lib/Transforms/Utils/DemoteRegToStack.cpp
parent45f255d7d6d84b7cf9b639e5e39c0eb4eccf1d01 (diff)
downloadexternal_llvm-72290d5156b835e2f748d4f197313757ca978309.zip
external_llvm-72290d5156b835e2f748d4f197313757ca978309.tar.gz
external_llvm-72290d5156b835e2f748d4f197313757ca978309.tar.bz2
Fix warning when assertions disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/DemoteRegToStack.cpp')
-rw-r--r--lib/Transforms/Utils/DemoteRegToStack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/DemoteRegToStack.cpp b/lib/Transforms/Utils/DemoteRegToStack.cpp
index c123c03..b8dd754 100644
--- a/lib/Transforms/Utils/DemoteRegToStack.cpp
+++ b/lib/Transforms/Utils/DemoteRegToStack.cpp
@@ -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());