summaryrefslogtreecommitdiffstats
path: root/clang/examples/analyzer-plugin/MainCallChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/examples/analyzer-plugin/MainCallChecker.cpp')
-rw-r--r--clang/examples/analyzer-plugin/MainCallChecker.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/examples/analyzer-plugin/MainCallChecker.cpp b/clang/examples/analyzer-plugin/MainCallChecker.cpp
index 7f08760e3d4..74fe663e981 100644
--- a/clang/examples/analyzer-plugin/MainCallChecker.cpp
+++ b/clang/examples/analyzer-plugin/MainCallChecker.cpp
@@ -16,10 +16,8 @@ public:
} // end anonymous namespace
void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const {
- const ProgramStateRef state = C.getState();
- const LocationContext *LC = C.getLocationContext();
const Expr *Callee = CE->getCallee();
- const FunctionDecl *FD = state->getSVal(Callee, LC).getAsFunctionDecl();
+ const FunctionDecl *FD = C.getSVal(Callee).getAsFunctionDecl();
if (!FD)
return;
OpenPOWER on IntegriCloud