[llvm-commits] [llvm] r129759 - /llvm/trunk/lib/Transforms/Utils/Local.cpp
Jay Foad
jay.foad at gmail.com
Tue Apr 19 08:23:29 PDT 2011
Author: foad
Date: Tue Apr 19 10:23:29 2011
New Revision: 129759
URL: http://llvm.org/viewvc/llvm-project?rev=129759&view=rev
Log:
Trivial simplification.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=129759&r1=129758&r2=129759&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Tue Apr 19 10:23:29 2011
@@ -68,8 +68,7 @@
// 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);
More information about the llvm-commits
mailing list