summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-04-19 15:23:29 +0000
committerJay Foad <jay.foad@gmail.com>2011-04-19 15:23:29 +0000
commit6a85be25a4d67e75e088e73a181fd2cde7b98843 (patch)
treec4e112a2f087c1aaa092c8e8af70d63473fbeedb /llvm/lib/Transforms
parentddd3a2ec1db55a1b42f36648785b1c1e3e34ab93 (diff)
downloadbcm5719-llvm-6a85be25a4d67e75e088e73a181fd2cde7b98843.tar.gz
bcm5719-llvm-6a85be25a4d67e75e088e73a181fd2cde7b98843.zip
Trivial simplification.
llvm-svn: 129759
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index cc508a47de3..614e4114e9c 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -68,8 +68,7 @@ bool llvm::ConstantFoldTerminator(BasicBlock *BB) {
// Let the basic block know that we are letting go of it. Based on this,
// it will adjust it's PHI nodes.
- assert(BI->getParent() && "Terminator not inserted in block!");
- OldDest->removePredecessor(BI->getParent());
+ OldDest->removePredecessor(BB);
// Replace the conditional branch with an unconditional one.
BranchInst::Create(Destination, BI);
OpenPOWER on IntegriCloud