aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/DataStructure/GraphChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/DataStructure/GraphChecker.cpp')
-rw-r--r--lib/Analysis/DataStructure/GraphChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/GraphChecker.cpp b/lib/Analysis/DataStructure/GraphChecker.cpp
index f667a3a..4c690b1 100644
--- a/lib/Analysis/DataStructure/GraphChecker.cpp
+++ b/lib/Analysis/DataStructure/GraphChecker.cpp
@@ -133,8 +133,8 @@ void DSGC::verify(const DSGraph &G) {
}
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;