diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-07 23:07:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-07 23:07:33 +0000 |
commit | 40416e4e857f48f9d11491911ed1181afec9c139 (patch) | |
tree | 2ec406fb290844e7a581c89b740ee3eb5fc13e55 | |
parent | 9919101c5865d5c8f463219d60b4b93509610213 (diff) |
Fix PR361.
Dominance properties don't hold in unreachable code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14053 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 3bfa5b4df0..ef76dff0ba 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -592,7 +592,8 @@ void Verifier::visitInstruction(Instruction &I) { else if (OpBlock == BB) { // If they are in the same basic block, make sure that the definition // comes before the use. - Assert2(DS->dominates(Op, &I), + Assert2(DS->dominates(Op, &I) || + !DS->dominates(&BB->getParent()->getEntryBlock(), BB), "Instruction does not dominate all uses!", Op, &I); } |