examples/analyzer-plugin/: unbreak build

It was never updated for API changes in r149311/r149336/r149339
and r147688.

llvm-svn: 150202
This commit is contained in:
Dylan Noblesmith 2012-02-09 20:02:49 +00:00
parent 9345813ddd
commit aa1a64055b
1 changed files with 3 additions and 2 deletions

View 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;