diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-12 21:58:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-12 21:58:46 +0000 |
commit | 65dd30fdea33d0179d40b66c8e00d12db03e1c6a (patch) | |
tree | 72b39ff30b68b031cacf511d7b9e829cc0cd8fb8 /clang/lib/Analysis/LiveVariables.cpp | |
parent | a461e6d124d493caa9e8ee491d7ae40286bd05ea (diff) | |
download | bcm5719-llvm-65dd30fdea33d0179d40b66c8e00d12db03e1c6a.tar.gz bcm5719-llvm-65dd30fdea33d0179d40b66c8e00d12db03e1c6a.zip |
Update CFGStmtVisitor to recognize that ObjCForCollectionStmts are special block-level "expressions".
llvm-svn: 59176
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r-- | clang/lib/Analysis/LiveVariables.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp index 9bbbf55d6ee..4432ac0a53e 100644 --- a/clang/lib/Analysis/LiveVariables.cpp +++ b/clang/lib/Analysis/LiveVariables.cpp @@ -121,7 +121,7 @@ public: void VisitBinaryOperator(BinaryOperator* B); void VisitAssign(BinaryOperator* B); void VisitDeclStmt(DeclStmt* DS); - void VisitObjCForCollectionStmt(ObjCForCollectionStmt* S); + void BlockStmt_VisitObjCForCollectionStmt(ObjCForCollectionStmt* S); void VisitUnaryOperator(UnaryOperator* U); void Visit(Stmt *S); void VisitTerminator(CFGBlock* B); @@ -176,7 +176,9 @@ void TransferFuncs::VisitBinaryOperator(BinaryOperator* B) { else VisitStmt(B); } -void TransferFuncs::VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) { +void +TransferFuncs::BlockStmt_VisitObjCForCollectionStmt(ObjCForCollectionStmt* S) { + // This represents a 'use' of the collection. Visit(S->getCollection()); |