Author: nobled
Date: Thu Feb 9 14:02:49 2012
New Revision: 150202
URL: http://llvm.org/viewvc/llvm-project?rev=150202&view=rev
Log:
examples/analyzer-plugin/: unbreak build
It was never updated for API changes in r149311/r149336/r149339
and r147688.
Modified:
cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp
Modified: cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp?rev=150202&r1=150201&r2=150202&view=diff
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp (original)
+++ cfe/trunk/examples/analyzer-plugin/MainCallChecker.cpp Thu Feb 9 14:02:49
2012
@@ -16,9 +16,10 @@
} // 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;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits