diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Checker/ArrayBoundChecker.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Checker/ArrayBoundChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/tools/clang/lib/Checker/ArrayBoundChecker.cpp b/contrib/llvm/tools/clang/lib/Checker/ArrayBoundChecker.cpp index 746b3f9..98345bd 100644 --- a/contrib/llvm/tools/clang/lib/Checker/ArrayBoundChecker.cpp +++ b/contrib/llvm/tools/clang/lib/Checker/ArrayBoundChecker.cpp @@ -58,7 +58,7 @@ void ArrayBoundChecker::VisitLocation(CheckerContext &C, const Stmt *S, SVal l){ // Get the size of the array. DefinedOrUnknownSVal NumElements = C.getStoreManager().getSizeInElements(state, ER->getSuperRegion(), - ER->getValueType(C.getASTContext())); + ER->getValueType()); const GRState *StInBound = state->AssumeInBound(Idx, NumElements, true); const GRState *StOutBound = state->AssumeInBound(Idx, NumElements, false); |