diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-02-11 23:24:26 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-02-11 23:24:26 +0000 |
commit | 848ec83483ca4ba52ed72c7e29ebc330f8c87252 (patch) | |
tree | 89ca61710a05824b6868a80b68884e91faffd644 /include/clang/Analysis/Analyses/LiveVariables.h | |
parent | 21af8878b96ab1f9b077407ca3c512e5dc5d0ad6 (diff) |
Don't report dead stores on unreachable code paths. Fixes <rdar://problem/8405222>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Analyses/LiveVariables.h')
-rw-r--r-- | include/clang/Analysis/Analyses/LiveVariables.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Analysis/Analyses/LiveVariables.h b/include/clang/Analysis/Analyses/LiveVariables.h index 237fe14aed..fbbd2613e7 100644 --- a/include/clang/Analysis/Analyses/LiveVariables.h +++ b/include/clang/Analysis/Analyses/LiveVariables.h @@ -55,7 +55,8 @@ struct LiveVariables_ValueTypes { /// ObserveStmt - A callback invoked right before invoking the /// liveness transfer function on the given statement. - virtual void ObserveStmt(Stmt* S, const AnalysisDataTy& AD, + virtual void ObserveStmt(Stmt* S, const CFGBlock *currentBlock, + const AnalysisDataTy& AD, const ValTy& V) {} virtual void ObserverKill(DeclRefExpr* DR) {} |