OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d15dff2
)
eliminate a use of Instruction::getPrev(), patch by Gabor Greif in 2005.
author
Chris Lattner
<sabre@nondot.org>
Tue, 17 Apr 2007 17:36:12 +0000
(17:36 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 17 Apr 2007 17:36:12 +0000
(17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36197
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index
d09f157
..
98f2649
100644
(file)
--- a/
lib/VMCore/Verifier.cpp
+++ b/
lib/VMCore/Verifier.cpp
@@
-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());