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:
parent
9345813ddd
commit
aa1a64055b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue