summaryrefslogtreecommitdiffstats
path: root/lib/Checker/ArrayBoundChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/ArrayBoundChecker.cpp')
-rw-r--r--lib/Checker/ArrayBoundChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/ArrayBoundChecker.cpp b/lib/Checker/ArrayBoundChecker.cpp
index 746b3f9..98345bd 100644
--- a/lib/Checker/ArrayBoundChecker.cpp
+++ b/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);
OpenPOWER on IntegriCloud