summaryrefslogtreecommitdiffstats
path: root/clang/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-19 06:36:49 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-19 06:36:49 +0000
commit850f1155ad552cff17fcb62ca936bf33110c9630 (patch)
tree912ba3daee62d652028d14f28526795273b2f77c /clang/Analysis/LiveVariables.cpp
parent9c1011c090de1a45950478875305c2349c8a2c14 (diff)
downloadbcm5719-llvm-850f1155ad552cff17fcb62ca936bf33110c9630.tar.gz
bcm5719-llvm-850f1155ad552cff17fcb62ca936bf33110c9630.zip
Fixed bug where LiveVariables was not properly propagating updates to liveness
state that occurred in subexpressions of Block-Level expressions. Bug and fix provided by Nuno Lopes. llvm-svn: 44224
Diffstat (limited to 'clang/Analysis/LiveVariables.cpp')
-rw-r--r--clang/Analysis/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Analysis/LiveVariables.cpp b/clang/Analysis/LiveVariables.cpp
index f37239a6a69..3118a30d1fa 100644
--- a/clang/Analysis/LiveVariables.cpp
+++ b/clang/Analysis/LiveVariables.cpp
@@ -162,7 +162,7 @@ void TransferFuncs::VisitDeclStmt(DeclStmt* DS) {
void TransferFuncs::BlockStmt_VisitExpr(Expr* E) {
assert (AD.getCFG().isBlkExpr(E));
- static_cast<CFGStmtVisitor<TransferFuncs>*>(this)->Visit(E);
+ VisitChildren(E);
}
} // end anonymous namespace
OpenPOWER on IntegriCloud