[cfe-commits] r71030 - /cfe/branches/Apple/Dib/lib/AST/ParentMap.cpp

Mike Stump mrs at apple.com
Tue May 5 15:39:52 PDT 2009


Author: mrs
Date: Tue May  5 17:39:42 2009
New Revision: 71030

URL: http://llvm.org/viewvc/llvm-project?rev=71030&view=rev
Log:
Merge in 71026:

Fix subtle bug in ParentMap::isConsumedExpr(): correctly ignore *parents* that
are ParenExpr or CastExprs.

Modified:
    cfe/branches/Apple/Dib/lib/AST/ParentMap.cpp

Modified: cfe/branches/Apple/Dib/lib/AST/ParentMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/AST/ParentMap.cpp?rev=71030&r1=71029&r2=71030&view=diff

==============================================================================
--- cfe/branches/Apple/Dib/lib/AST/ParentMap.cpp (original)
+++ cfe/branches/Apple/Dib/lib/AST/ParentMap.cpp Tue May  5 17:39:42 2009
@@ -51,7 +51,7 @@
   Stmt *DirectChild = E;
   
   // Ignore parents that are parentheses or casts.
-  while (P && (isa<ParenExpr>(E) || isa<CastExpr>(E))) {
+  while (P && (isa<ParenExpr>(P) || isa<CastExpr>(P))) {
     DirectChild = P;
     P = getParent(P);
   }





More information about the cfe-commits mailing list