]> granicus.if.org Git - clang/commitdiff
Fix a bug where child statements could not be identified as being in a CFGBlock in...
authorTom Care <tcare@apple.com>
Wed, 11 Aug 2010 23:36:58 +0000 (23:36 +0000)
committerTom Care <tcare@apple.com>
Wed, 11 Aug 2010 23:36:58 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110881 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFGStmtMap.cpp

index deca741440eda65966a343c971108bf6e64c0056..965eca1b3c9017b323d6b1c6a632e9e229e472ed 100644 (file)
@@ -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.