mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Fix bug I introduced yesterday :(
llvm-svn: 5669
This commit is contained in:
parent
b58da8ab04
commit
dec7727a9f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user