mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Fix bug I introduced yesterday :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -307,6 +307,7 @@ void Preheaders::RewriteLoopExitBlock(Loop *L, BasicBlock *Exit) {
|
|||||||
|
|
||||||
// Replace any instances of Exit with NewBB in this and any nested loops...
|
// 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)
|
for (df_iterator<Loop*> I = df_begin(L), E = df_end(L); I != E; ++I)
|
||||||
|
if (I->hasExitBlock(Exit))
|
||||||
I->changeExitBlock(Exit, NewBB); // Update exit block information
|
I->changeExitBlock(Exit, NewBB); // Update exit block information
|
||||||
|
|
||||||
// Update dominator information... The blocks that dominate NewBB are the
|
// Update dominator information... The blocks that dominate NewBB are the
|
||||||
|
Reference in New Issue
Block a user