[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/GraphChecker.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Jul 26 18:01:12 PDT 2003


Changes in directory llvm/lib/Analysis/DataStructure:

GraphChecker.cpp updated: 1.5 -> 1.6

---
Log message:

Fix another minor bug


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/GraphChecker.cpp
diff -u llvm/lib/Analysis/DataStructure/GraphChecker.cpp:1.5 llvm/lib/Analysis/DataStructure/GraphChecker.cpp:1.6
--- llvm/lib/Analysis/DataStructure/GraphChecker.cpp:1.5	Fri Jul 25 15:49:29 2003
+++ llvm/lib/Analysis/DataStructure/GraphChecker.cpp	Sat Jul 26 18:00:05 2003
@@ -133,8 +133,8 @@
       }
 
       unsigned Flags = 0;
-      for (++ColonPos; ColonPos != I->size(); ++ColonPos)
-        switch ((*I)[ColonPos]) {
+      for (unsigned C = ColonPos+1; C != I->size(); ++C)
+        switch ((*I)[C]) {
         case 'S': Flags |= DSNode::AllocaNode;  break;
         case 'H': Flags |= DSNode::HeapNode;    break;
         case 'G': Flags |= DSNode::GlobalNode;  break;





More information about the llvm-commits mailing list