[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/GraphChecker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jul 25 15:50:01 PDT 2003
Changes in directory llvm/lib/Analysis/DataStructure:
GraphChecker.cpp updated: 1.4 -> 1.5
---
Log message:
Dont' try to parse the colon
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/GraphChecker.cpp
diff -u llvm/lib/Analysis/DataStructure/GraphChecker.cpp:1.4 llvm/lib/Analysis/DataStructure/GraphChecker.cpp:1.5
--- llvm/lib/Analysis/DataStructure/GraphChecker.cpp:1.4 Fri Jul 25 15:45:40 2003
+++ llvm/lib/Analysis/DataStructure/GraphChecker.cpp Fri Jul 25 15:49:29 2003
@@ -133,7 +133,7 @@
}
unsigned Flags = 0;
- for (; ColonPos != I->size(); ++ColonPos)
+ for (++ColonPos; ColonPos != I->size(); ++ColonPos)
switch ((*I)[ColonPos]) {
case 'S': Flags |= DSNode::AllocaNode; break;
case 'H': Flags |= DSNode::HeapNode; break;
@@ -143,7 +143,7 @@
case 'M': Flags |= DSNode::Modified; break;
case 'R': Flags |= DSNode::Read; break;
case 'A': Flags |= DSNode::Array; break;
- default: std::cerr << "Invalid DSNode flag!\n"; break;
+ default: std::cerr << "Invalid DSNode flag!\n"; abort();
}
CheckFlagsM[std::string(I->begin(), I->begin()+ColonPos)] = Flags;
}
More information about the llvm-commits
mailing list