mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
eliminate a use of Instruction::getPrev(), patch by Gabor Greif in 2005.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36197 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d15dff24c6
commit
4d8c16f15a
@ -640,7 +640,8 @@ void Verifier::visitPHINode(PHINode &PN) {
|
||||
// This can be tested by checking whether the instruction before this is
|
||||
// either nonexistent (because this is begin()) or is a PHI node. If not,
|
||||
// then there is some other instruction before a PHI.
|
||||
Assert2(&PN.getParent()->front() == &PN || isa<PHINode>(PN.getPrev()),
|
||||
Assert2(&PN == &PN.getParent()->front() ||
|
||||
isa<PHINode>(--BasicBlock::iterator(&PN)),
|
||||
"PHI nodes not grouped at top of basic block!",
|
||||
&PN, PN.getParent());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user