diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp b/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp index 2d33ebc2610d..9aa5348e4c34 100644 --- a/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp +++ b/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp @@ -39,10 +39,8 @@ void PointerSubChecker::checkPreStmt(const BinaryOperator *B,    if (B->getOpcode() != BO_Sub)      return; -  ProgramStateRef state = C.getState(); -  const LocationContext *LCtx = C.getLocationContext(); -  SVal LV = state->getSVal(B->getLHS(), LCtx); -  SVal RV = state->getSVal(B->getRHS(), LCtx); +  SVal LV = C.getSVal(B->getLHS()); +  SVal RV = C.getSVal(B->getRHS());    const MemRegion *LR = LV.getAsRegion();    const MemRegion *RR = RV.getAsRegion();  | 
