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
diff --git a/clang/Analysis/LiveVariables.cpp b/clang/Analysis/LiveVariables.cpp
index f37239a..3118a30 100644
--- a/clang/Analysis/LiveVariables.cpp
+++ b/clang/Analysis/LiveVariables.cpp
@@ -162,7 +162,7 @@
void TransferFuncs::BlockStmt_VisitExpr(Expr* E) {
assert (AD.getCFG().isBlkExpr(E));
- static_cast<CFGStmtVisitor<TransferFuncs>*>(this)->Visit(E);
+ VisitChildren(E);
}
} // end anonymous namespace