mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
Don't call dominates on unreachable instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7087ea508
commit
8691216d91
@ -1648,8 +1648,8 @@ void Verifier::visitInstruction(Instruction &I) {
|
||||
}
|
||||
|
||||
// Definition must dominate use unless use is unreachable!
|
||||
Assert2(InstsInThisBlock.count(Op) || DT->dominates(Op, &I) ||
|
||||
!DT->isReachableFromEntry(BB),
|
||||
Assert2(InstsInThisBlock.count(Op) || !DT->isReachableFromEntry(BB)
|
||||
|| DT->dominates(Op, &I),
|
||||
"Instruction does not dominate all uses!", Op, &I);
|
||||
}
|
||||
} else if (isa<InlineAsm>(I.getOperand(i))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user