[cfe-commits] r44224 - /cfe/trunk/Analysis/LiveVariables.cpp

Ted Kremenek kremenek at apple.com
Sun Nov 18 22:36:49 PST 2007


Author: kremenek
Date: Mon Nov 19 00:36:49 2007
New Revision: 44224

URL: http://llvm.org/viewvc/llvm-project?rev=44224&view=rev
Log:
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.

Modified:
    cfe/trunk/Analysis/LiveVariables.cpp

Modified: cfe/trunk/Analysis/LiveVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/LiveVariables.cpp?rev=44224&r1=44223&r2=44224&view=diff

==============================================================================
--- cfe/trunk/Analysis/LiveVariables.cpp (original)
+++ cfe/trunk/Analysis/LiveVariables.cpp Mon Nov 19 00:36:49 2007
@@ -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





More information about the cfe-commits mailing list