diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-28 16:54:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-28 16:54:17 +0000 |
commit | 49eb0e3026959a46d516eb3b229a4cb7c0881ec3 (patch) | |
tree | 81c35d80e157fd35742eec3c479531553eb10dbe /llvm/lib/Transforms | |
parent | 514c02eb260bc0e9a7ddfdccc959bbfae79de42c (diff) | |
download | bcm5719-llvm-49eb0e3026959a46d516eb3b229a4cb7c0881ec3.tar.gz bcm5719-llvm-49eb0e3026959a46d516eb3b229a4cb7c0881ec3.zip |
Fix bug I introduced yesterday :(
llvm-svn: 5669
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopSimplify.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp index 3759f44f64c..5a68dda1af3 100644 --- a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp @@ -307,7 +307,8 @@ void Preheaders::RewriteLoopExitBlock(Loop *L, BasicBlock *Exit) { // Replace any instances of Exit with NewBB in this and any nested loops... for (df_iterator<Loop*> I = df_begin(L), E = df_end(L); I != E; ++I) - I->changeExitBlock(Exit, NewBB); // Update exit block information + if (I->hasExitBlock(Exit)) + I->changeExitBlock(Exit, NewBB); // Update exit block information // Update dominator information... The blocks that dominate NewBB are the // intersection of the dominators of predecessors, plus the block itself. |