Fix a nasty problem with dominance calculation for unreachable blocks.
authorChris Lattner <sabre@nondot.org>
Fri, 4 Oct 2002 14:45:48 +0000 (14:45 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 Oct 2002 14:45:48 +0000 (14:45 +0000)
commit4e4caeffbdf3da85b980386131f6fd364a981153
tree23b841084cdc2719ae1521274a7bc7c066805d26
parenta00397e1eeaaffc21d01af612480476fe95b20a5
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Dominators.cpp