]> granicus.if.org Git - clang/commitdiff
examples/analyzer-plugin/: unbreak build
authorDylan Noblesmith <nobled@dreamwidth.org>
Thu, 9 Feb 2012 20:02:49 +0000 (20:02 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Thu, 9 Feb 2012 20:02:49 +0000 (20:02 +0000)
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

examples/analyzer-plugin/MainCallChecker.cpp

index 85f775483d4d48b48fe32498755e339f45a84e7b..34fb578c0185124cbca604692d72b1ae5a3f753c 100644 (file)
@@ -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;