From b4b65e63191d97d2abf4cb5379883a529c29ef6a Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 17 Jan 2008 18:25:22 +0000 Subject: Added support to dataflow solver to (when requested) also record dataflow values for the block-level expressions. Modified 'LiveVariables' to provide the option to clients to record liveness information for block-level expressions (using the above feature). Modified 'DeadStores' to conform to the new interface of 'LiveVariables'. Modified 'GRConstants' to compute liveness information for block-level expressions. llvm-svn: 46137 --- clang/Analysis/DeadStores.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/Analysis/DeadStores.cpp') diff --git a/clang/Analysis/DeadStores.cpp b/clang/Analysis/DeadStores.cpp index 564478d6260..926109e1b29 100644 --- a/clang/Analysis/DeadStores.cpp +++ b/clang/Analysis/DeadStores.cpp @@ -80,7 +80,7 @@ void CheckDeadStores(CFG& cfg, ASTContext &Ctx, Diagnostic &Diags) { LiveVariables L(cfg); L.runOnCFG(cfg); DeadStoreObs A(Ctx, Diags); - L.runOnAllBlocks(cfg,A); + L.runOnAllBlocks(cfg,&A); } } // end namespace clang -- cgit v1.2.3