From 354840eec23ba05948bb0426766c0e0b654f87bc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 20 Jun 2008 21:55:29 +0000 Subject: [PATCH] Updated call to dead stores to use proper arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52560 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/ASTConsumers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp index 580563b05b..92add4195e 100644 --- a/Driver/ASTConsumers.cpp +++ b/Driver/ASTConsumers.cpp @@ -20,6 +20,7 @@ #include "clang/AST/AST.h" #include "clang/AST/ASTConsumer.h" #include "clang/AST/CFG.h" +#include "clang/AST/ParentMap.h" #include "clang/Analysis/Analyses/LiveVariables.h" #include "clang/Analysis/LocalCheckers.h" #include "clang/Analysis/PathSensitive/GRTransferFuncs.h" @@ -640,7 +641,8 @@ namespace { } virtual void VisitCFG(CFG& C, Decl& CD) { - CheckDeadStores(C, *Ctx, Diags); + llvm::OwningPtr PM(new ParentMap(CD.getCodeBody())); + CheckDeadStores(C, *Ctx, *PM, Diags); } virtual bool printFuncDeclStart() { return false; } -- 2.40.0