mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix PR361.
Dominance properties don't hold in unreachable code llvm-svn: 14053
This commit is contained in:
parent
c24db73c84
commit
a1c9755c7c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user