mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
- Fix bug: cee/2002-10-07-NoImmediateDominator.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dee430d26e
commit
d3d06a5cd8
@ -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