aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-07-15 05:09:24 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-07-15 05:09:24 +0000
commitd79bf559f562e113b90bf6b352437c9d6ea882ba (patch)
tree0bc519eb940354eae30bd79969b8a8ee73ea97ac /lib/Analysis/RegionStore.cpp
parent53363b26d2bd5ae7890957d7acabfd407bd362b7 (diff)
Use utility method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionStore.cpp')
-rw-r--r--lib/Analysis/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp
index 1dc5118d9e..661f84f4b1 100644
--- a/lib/Analysis/RegionStore.cpp
+++ b/lib/Analysis/RegionStore.cpp
@@ -814,7 +814,7 @@ SVal RegionStoreManager::Retrieve(const GRState *state, Loc L, QualType T) {
if (isa<SymbolicRegion>(MR)) {
ASTContext &Ctx = getContext();
- SVal idx = ValMgr.makeIntVal(0, Ctx.IntTy);
+ SVal idx = ValMgr.makeZeroArrayIndex();
assert(!T.isNull());
MR = MRMgr.getElementRegion(T, idx, MR, Ctx);
}