diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-26 23:00:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-26 23:00:05 +0000 |
commit | 1f2bbaa9cb1435995faa446bf1be6435172648d8 (patch) | |
tree | fd1a86a9cbbccdcd2f038bbcdc9e7f01722e0344 /lib/Analysis | |
parent | 869ff9e7be4e860196e0acc189d3476e8c1127a9 (diff) | |
download | external_llvm-1f2bbaa9cb1435995faa446bf1be6435172648d8.zip external_llvm-1f2bbaa9cb1435995faa446bf1be6435172648d8.tar.gz external_llvm-1f2bbaa9cb1435995faa446bf1be6435172648d8.tar.bz2 |
Fix another minor bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/DataStructure/GraphChecker.cpp | 4 |
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; |