Dont' try to parse the colon

llvm-svn: 7323
This commit is contained in:
Chris Lattner 2003-07-25 20:49:29 +00:00
parent 915b998b3f
commit 752a4ca4c4

View File

@ -133,7 +133,7 @@ void DSGC::verify(const DSGraph &G) {
}
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 @@ void DSGC::verify(const DSGraph &G) {
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;
}