mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
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
This commit is contained in:
parent
9919101c58
commit
40416e4e85
@ -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