[llvm-commits] CVS: llvm/lib/VMCore/Verifier.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 4 19:26:01 PDT 2004
Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.103 -> 1.104
---
Log message:
Work around VS bug
---
Diffs of the changes: (+2 -3)
Index: llvm/lib/VMCore/Verifier.cpp
diff -u llvm/lib/VMCore/Verifier.cpp:1.103 llvm/lib/VMCore/Verifier.cpp:1.104
--- llvm/lib/VMCore/Verifier.cpp:1.103 Thu Jun 3 01:38:43 2004
+++ llvm/lib/VMCore/Verifier.cpp Fri Jun 4 19:22:04 2004
@@ -318,9 +318,8 @@
if (isa<PHINode>(BB.front())) {
std::vector<BasicBlock*> Preds(pred_begin(&BB), pred_end(&BB));
std::sort(Preds.begin(), Preds.end());
-
- for (BasicBlock::iterator I = BB.begin();
- PHINode *PN = dyn_cast<PHINode>(I); ++I) {
+ PHINode *PN;
+ for (BasicBlock::iterator I = BB.begin(); PN = dyn_cast<PHINode>(I); ++I) {
// Ensure that PHI nodes have at least one entry!
Assert1(PN->getNumIncomingValues() != 0,
More information about the llvm-commits
mailing list