}
unsigned Flags = 0;
- for (; 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;
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;
}