array indexes are unsigned integers of the same width as pointer.
no-outofbounds.c still fails. Previously it passed because the array index
is mistakenly a loc::ConcreteInt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70844 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/Store.cpp b/lib/Analysis/Store.cpp
index 76437d2..c9c49c6 100644
--- a/lib/Analysis/Store.cpp
+++ b/lib/Analysis/Store.cpp
@@ -67,7 +67,7 @@
// the types aren't the same, so we construct an ElementRegion.
// FIXME: We should have a standard query function to get the size
// of the array index.
- SVal Idx = ValMgr.makeZeroVal(ValMgr.getContext().VoidPtrTy);
+ SVal Idx = ValMgr.makeZeroIndex();
// If the super region is an element region, strip it away.
// FIXME: Is this the right thing to do in all cases?