git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245730
91177308-0d34-0410-b5e6-
96231b3b80d8
/// \brief Test whether a given ConstantInt is in-range for a SequentialType.
static bool isIndexInRangeOfSequentialType(SequentialType *STy,
const ConstantInt *CI) {
/// \brief Test whether a given ConstantInt is in-range for a SequentialType.
static bool isIndexInRangeOfSequentialType(SequentialType *STy,
const ConstantInt *CI) {
+ // And indicies are valid when indexing along a pointer
if (isa<PointerType>(STy))
return true;
if (isa<PointerType>(STy))
return true;