commit | d3d06a5cd80a718a640e26350954197fb133800a | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Oct 08 21:53:51 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Oct 08 21:53:51 2002 +0000 |
tree | 8d2b8df9ef2b59ea1f9b79da9ce8e16288c45b58 | |
parent | dee430d26e14a3d7c8d86688d49ac8b116aa044f [diff] [blame] |
- 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
diff --git a/lib/Transforms/Utils/BreakCriticalEdges.cpp b/lib/Transforms/Utils/BreakCriticalEdges.cpp index b73ed55..0c4974d 100644 --- a/lib/Transforms/Utils/BreakCriticalEdges.cpp +++ b/lib/Transforms/Utils/BreakCriticalEdges.cpp
@@ -118,7 +118,8 @@ // 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); } }