From 51973e1088318b39f833e4da886feafc42191f1f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 21 Aug 2015 20:18:39 +0000 Subject: [PATCH] Add comment as follow up to r245712 llvm-svn: 245730 --- llvm/lib/IR/ConstantFold.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 131c5c517904..f63ce9bbf038 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/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;