- Fix bug: cee/2002-10-07-NoImmediateDominator.ll

llvm-svn: 4081
This commit is contained in:
Chris Lattner 2002-10-08 21:53:51 +00:00
parent caf5b504a3
commit b7368500dc
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}