Add comment as follow up to r245712

llvm-svn: 245730
This commit is contained in:
David Blaikie 2015-08-21 20:18:39 +00:00
parent 9e916dc48d
commit 51973e1088
1 changed files with 1 additions and 0 deletions

View File

@ -1999,6 +1999,7 @@ static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) {
/// \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;