diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-09 20:02:49 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-02-09 20:02:49 +0000 |
commit | aa1a64055bcf235eaa2728e8a729bc9565f107b8 (patch) | |
tree | 240675bcf79b6a7008915613eb536053c93ec903 /clang/examples/analyzer-plugin/MainCallChecker.cpp | |
parent | 9345813ddd84701fe38604f88b94c3790e20eff8 (diff) | |
download | bcm5719-llvm-aa1a64055bcf235eaa2728e8a729bc9565f107b8.tar.gz bcm5719-llvm-aa1a64055bcf235eaa2728e8a729bc9565f107b8.zip |
examples/analyzer-plugin/: unbreak build
It was never updated for API changes in r149311/r149336/r149339
and r147688.
llvm-svn: 150202
Diffstat (limited to 'clang/examples/analyzer-plugin/MainCallChecker.cpp')
-rw-r--r-- | clang/examples/analyzer-plugin/MainCallChecker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/examples/analyzer-plugin/MainCallChecker.cpp b/clang/examples/analyzer-plugin/MainCallChecker.cpp index 85f775483d4..34fb578c018 100644 --- a/clang/examples/analyzer-plugin/MainCallChecker.cpp +++ b/clang/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; |