summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/AttrNonNullChecker.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-02-08 09:30:02 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-02-08 09:30:02 +0000
commit500f49fe258ae0564cb9b33b1abb539565e9b7ab (patch)
treea4a2a16d145400a8d50f9eaf3ffb253c419176a0 /clang/lib/Checker/AttrNonNullChecker.cpp
parentc5f825eacd5c667007881dd649a281534d300356 (diff)
downloadbcm5719-llvm-500f49fe258ae0564cb9b33b1abb539565e9b7ab.tar.gz
bcm5719-llvm-500f49fe258ae0564cb9b33b1abb539565e9b7ab.zip
Rename: GRState::getSVal(Stmt*) => getExprVal(),
GRState::getSVal(MemRegion*) => Load(). llvm-svn: 95541
Diffstat (limited to 'clang/lib/Checker/AttrNonNullChecker.cpp')
-rw-r--r--clang/lib/Checker/AttrNonNullChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Checker/AttrNonNullChecker.cpp b/clang/lib/Checker/AttrNonNullChecker.cpp
index 83dc13e92b6..496c67c9ecd 100644
--- a/clang/lib/Checker/AttrNonNullChecker.cpp
+++ b/clang/lib/Checker/AttrNonNullChecker.cpp
@@ -41,7 +41,7 @@ void AttrNonNullChecker::PreVisitCallExpr(CheckerContext &C,
const GRState *state = C.getState();
// Check if the callee has a 'nonnull' attribute.
- SVal X = state->getSVal(CE->getCallee());
+ SVal X = state->getExprVal(CE->getCallee());
const FunctionDecl* FD = X.getAsFunctionDecl();
if (!FD)
@@ -60,7 +60,7 @@ void AttrNonNullChecker::PreVisitCallExpr(CheckerContext &C,
if (!Att->isNonNull(idx))
continue;
- const SVal &V = state->getSVal(*I);
+ const SVal &V = state->getExprVal(*I);
const DefinedSVal *DV = dyn_cast<DefinedSVal>(&V);
if (!DV)
OpenPOWER on IntegriCloud