mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 16:07:49 +00:00
- Fix bug: cee/2002-10-07-NoImmediateDominator.ll
llvm-svn: 4081
This commit is contained in:
parent
c35f54df86
commit
d68e6d1718
@ -118,7 +118,8 @@ void SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P) {
|
||||
// The new block is not the immediate dominator for any other nodes, but
|
||||
// TINode is the immediate dominator for the new node.
|
||||
//
|
||||
DT->createNewNode(NewBB, TINode);
|
||||
if (TINode) // Don't break unreachable code!
|
||||
DT->createNewNode(NewBB, TINode);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,8 @@ void SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P) {
|
||||
// The new block is not the immediate dominator for any other nodes, but
|
||||
// TINode is the immediate dominator for the new node.
|
||||
//
|
||||
DT->createNewNode(NewBB, TINode);
|
||||
if (TINode) // Don't break unreachable code!
|
||||
DT->createNewNode(NewBB, TINode);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user