[cfe-commits] r52560 - /cfe/trunk/Driver/ASTConsumers.cpp
Ted Kremenek
kremenek at apple.com
Fri Jun 20 14:55:29 PDT 2008
Author: kremenek
Date: Fri Jun 20 16:55:29 2008
New Revision: 52560
URL: http://llvm.org/viewvc/llvm-project?rev=52560&view=rev
Log:
Updated call to dead stores to use proper arguments.
Modified:
cfe/trunk/Driver/ASTConsumers.cpp
Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=52560&r1=52559&r2=52560&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Fri Jun 20 16:55:29 2008
@@ -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 @@
}
virtual void VisitCFG(CFG& C, Decl& CD) {
- CheckDeadStores(C, *Ctx, Diags);
+ llvm::OwningPtr<ParentMap> PM(new ParentMap(CD.getCodeBody()));
+ CheckDeadStores(C, *Ctx, *PM, Diags);
}
virtual bool printFuncDeclStart() { return false; }
More information about the cfe-commits
mailing list