[cfe-commits] r110881 - /cfe/trunk/lib/Analysis/CFGStmtMap.cpp

Tom Care tcare at apple.com
Wed Aug 11 16:36:58 PDT 2010


Author: tcare
Date: Wed Aug 11 18:36:58 2010
New Revision: 110881

URL: http://llvm.org/viewvc/llvm-project?rev=110881&view=rev
Log:
Fix a bug where child statements could not be identified as being in a CFGBlock in CFGStmtMap::getBlock.

Modified:
    cfe/trunk/lib/Analysis/CFGStmtMap.cpp

Modified: cfe/trunk/lib/Analysis/CFGStmtMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFGStmtMap.cpp?rev=110881&r1=110880&r2=110881&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFGStmtMap.cpp (original)
+++ cfe/trunk/lib/Analysis/CFGStmtMap.cpp Wed Aug 11 18:36:58 2010
@@ -31,7 +31,7 @@
   // 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.





More information about the cfe-commits mailing list