summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/ArrayBoundChecker.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-08-11 06:10:55 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-08-11 06:10:55 +0000
commit8de0a3d8c3cf4f6491412f44e3ed3061b3208dcb (patch)
treefa473cb0156532b0afe9971bc8aeaf10f55d8e35 /clang/lib/Checker/ArrayBoundChecker.cpp
parent5cd4d0f9ac43a82d7958c54fc6aaafeec4ddb9e3 (diff)
downloadbcm5719-llvm-8de0a3d8c3cf4f6491412f44e3ed3061b3208dcb.tar.gz
bcm5719-llvm-8de0a3d8c3cf4f6491412f44e3ed3061b3208dcb.zip
MemRegion can refer to ASTContext without external help.
llvm-svn: 110784
Diffstat (limited to 'clang/lib/Checker/ArrayBoundChecker.cpp')
-rw-r--r--clang/lib/Checker/ArrayBoundChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/ArrayBoundChecker.cpp b/clang/lib/Checker/ArrayBoundChecker.cpp
index 746b3f95d41..98345bd7037 100644
--- a/clang/lib/Checker/ArrayBoundChecker.cpp
+++ b/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);
OpenPOWER on IntegriCloud