diff options
author | Tom Care <tcare@apple.com> | 2010-08-11 23:36:58 +0000 |
---|---|---|
committer | Tom Care <tcare@apple.com> | 2010-08-11 23:36:58 +0000 |
commit | b5049d83fd83bd0dc8b19e94b5c05f38ea64d7ce (patch) | |
tree | 3aef5074945b0058c1a716fa8e3f9d11157dd19f /lib/Analysis/CFGStmtMap.cpp | |
parent | e5c35377020d6c38d16434c9f373a5fa9bb4f2eb (diff) |
Fix a bug where child statements could not be identified as being in a CFGBlock in CFGStmtMap::getBlock.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFGStmtMap.cpp')
-rw-r--r-- | lib/Analysis/CFGStmtMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/CFGStmtMap.cpp b/lib/Analysis/CFGStmtMap.cpp index deca741440..965eca1b3c 100644 --- a/lib/Analysis/CFGStmtMap.cpp +++ b/lib/Analysis/CFGStmtMap.cpp @@ -31,7 +31,7 @@ CFGBlock *CFGStmtMap::getBlock(Stmt *S) { // If 'S' isn't in the map, walk the ParentMap to see if one of its ancestors // is in the map. while (X) { - SMap::iterator I = SM->find(S); + SMap::iterator I = SM->find(X); if (I != SM->end()) { CFGBlock *B = I->second; // Memoize this lookup. |