summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-02-09 20:02:49 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-02-09 20:02:49 +0000
commit8f79e3f571dc9ceb26c0acdff9852d45d2d1df37 (patch)
tree439b5340bc1faf9e48c846b472f9fd64ae9eefdb /examples
parent3d9000dc90485d5a3f254f4b65d8f5a675ab0594 (diff)
downloadclang-8f79e3f571dc9ceb26c0acdff9852d45d2d1df37.tar.gz
clang-8f79e3f571dc9ceb26c0acdff9852d45d2d1df37.tar.bz2
clang-8f79e3f571dc9ceb26c0acdff9852d45d2d1df37.tar.xz
examples/analyzer-plugin/: unbreak build
It was never updated for API changes in r149311/r149336/r149339 and r147688. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/analyzer-plugin/MainCallChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/analyzer-plugin/MainCallChecker.cpp b/examples/analyzer-plugin/MainCallChecker.cpp
index 85f775483d..34fb578c01 100644
--- a/examples/analyzer-plugin/MainCallChecker.cpp
+++ b/examples/analyzer-plugin/MainCallChecker.cpp
@@ -16,9 +16,10 @@ public:
} // end anonymous namespace
void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const {
- const ProgramState *state = C.getState();
+ const ProgramStateRef state = C.getState();
+ const LocationContext *LC = C.getLocationContext();
const Expr *Callee = CE->getCallee();
- const FunctionDecl *FD = state->getSVal(Callee).getAsFunctionDecl();
+ const FunctionDecl *FD = state->getSVal(Callee, LC).getAsFunctionDecl();
if (!FD)
return;