Skip to content
Commit 2cedf1ce authored by Chris Lattner's avatar Chris Lattner
Browse files

Fix a nasty problem with dominance calculation for unreachable blocks.

If we had a CFG that look like Entry -> B, Unreachable -> B, then we would
not correctly determine that Entry dominated B, because Entry did not
apparently dominate "unreachable".  This patch fixes this by making the entry
node dominate all blocks, including unreachable ones.

llvm-svn: 4037
parent 9df1cf30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment