]> granicus.if.org Git - clang/commitdiff
Fixed bug where LiveVariables was not properly propagating updates to liveness
authorTed Kremenek <kremenek@apple.com>
Mon, 19 Nov 2007 06:36:49 +0000 (06:36 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 19 Nov 2007 06:36:49 +0000 (06:36 +0000)
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

Analysis/LiveVariables.cpp

index f37239a6a692f0b754684eeeb03e05a05f8882ab..3118a30d1faf9849a3546435f9a849fbcf0593c4 100644 (file)
@@ -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