Changes in directory llvm/lib/VMCore:

Verifier.cpp updated: 1.202 -> 1.203
---
Log message:

eliminate a use of Instruction::getPrev(), patch by Gabor Greif in 2005.



---
Diffs of the changes:  (+2 -1)

 Verifier.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.202 llvm/lib/VMCore/Verifier.cpp:1.203
--- llvm/lib/VMCore/Verifier.cpp:1.202  Wed Apr 11 21:48:46 2007
+++ llvm/lib/VMCore/Verifier.cpp        Tue Apr 17 12:36:12 2007
@@ -640,7 +640,8 @@
   // 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());
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to