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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44224 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Analysis/LiveVariables.cpp b/Analysis/LiveVariables.cpp
index f37239a..3118a30 100644
--- a/Analysis/LiveVariables.cpp
+++ b/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