diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-04-19 15:23:29 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-04-19 15:23:29 +0000 |
commit | 6a85be25a4d67e75e088e73a181fd2cde7b98843 (patch) | |
tree | c4e112a2f087c1aaa092c8e8af70d63473fbeedb /llvm/lib/Transforms | |
parent | ddd3a2ec1db55a1b42f36648785b1c1e3e34ab93 (diff) | |
download | bcm5719-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.cpp | 3 |
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); |