diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-10-08 21:53:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-10-08 21:53:51 +0000 |
| commit | b7368500dcd4f289bbb31c49b2c25f0beed8ef08 (patch) | |
| tree | 0fac0269d2df8a74831371bf8da09e256ee7e099 /llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp | |
| parent | caf5b504a378208b75dffbda5a64a3940da21f52 (diff) | |
| download | bcm5719-llvm-b7368500dcd4f289bbb31c49b2c25f0beed8ef08.tar.gz bcm5719-llvm-b7368500dcd4f289bbb31c49b2c25f0beed8ef08.zip | |
- Fix bug: cee/2002-10-07-NoImmediateDominator.ll
llvm-svn: 4081
Diffstat (limited to 'llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp b/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp index b73ed55b8c9..0c4974db10a 100644 --- a/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp +++ b/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp @@ -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); } } |

