mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
eliminate a use of Instruction::getPrev(), patch by Gabor Greif in 2005.
llvm-svn: 36197
This commit is contained in:
parent
c7109ece27
commit
09139c7951
@ -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…
Reference in New Issue
Block a user