From: Ted Kremenek Date: Mon, 19 Nov 2007 06:36:49 +0000 (+0000) Subject: Fixed bug where LiveVariables was not properly propagating updates to liveness X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e4d652790b3a6a737ffb19ff2a448ce8fa5e2fd;p=clang 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 f37239a6a6..3118a30d1f 100644 --- a/Analysis/LiveVariables.cpp +++ b/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*>(this)->Visit(E); + VisitChildren(E); } } // end anonymous namespace