From: David Blaikie Date: Fri, 21 Aug 2015 20:18:39 +0000 (+0000) Subject: Add comment as follow up to r245712 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5e8c2097ae29dd38cf66a6633030b1a7764fd1d1;hp=2071d7abd9616227d6a1c1aacb7e44b3797d6902 Add comment as follow up to r245712 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/ConstantFold.cpp b/lib/IR/ConstantFold.cpp index 131c5c51790..f63ce9bbf03 100644 --- a/lib/IR/ConstantFold.cpp +++ b/lib/IR/ConstantFold.cpp @@ -1999,6 +1999,7 @@ static bool isInBoundsIndices(ArrayRef 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(STy)) return true;