From: Ted Kremenek Date: Fri, 20 Jun 2008 21:55:29 +0000 (+0000) Subject: Updated call to dead stores to use proper arguments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=354840eec23ba05948bb0426766c0e0b654f87bc;p=clang 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 --- 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; }