diff options
Diffstat (limited to 'lib/AST/ParentMap.cpp')
-rw-r--r-- | lib/AST/ParentMap.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/ParentMap.cpp b/lib/AST/ParentMap.cpp index d8882c9030b2..bc57b20790d9 100644 --- a/lib/AST/ParentMap.cpp +++ b/lib/AST/ParentMap.cpp @@ -15,6 +15,7 @@ #include "clang/AST/Decl.h" #include "clang/AST/Expr.h" #include "clang/AST/ExprCXX.h" +#include "clang/AST/StmtObjC.h" #include "llvm/ADT/DenseMap.h" using namespace clang; @@ -193,6 +194,8 @@ bool ParentMap::isConsumedExpr(Expr* E) const { return DirectChild == cast<IndirectGotoStmt>(P)->getTarget(); case Stmt::SwitchStmtClass: return DirectChild == cast<SwitchStmt>(P)->getCond(); + case Stmt::ObjCForCollectionStmtClass: + return DirectChild == cast<ObjCForCollectionStmt>(P)->getCollection(); case Stmt::ReturnStmtClass: return true; } |