aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-08-21 20:18:39 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-08-21 20:18:39 +0000
commit51973e1088318b39f833e4da886feafc42191f1f (patch)
tree73778df081e92fc3cb05de8060aeb37aa101b0ec /llvm/lib/IR/ConstantFold.cpp
parent9e916dc48def7451c189b1e6efe830ef9f1da803 (diff)
downloadllvm-51973e1088318b39f833e4da886feafc42191f1f.zip
llvm-51973e1088318b39f833e4da886feafc42191f1f.tar.gz
llvm-51973e1088318b39f833e4da886feafc42191f1f.tar.bz2
Add comment as follow up to r245712
llvm-svn: 245730
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r--llvm/lib/IR/ConstantFold.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp
index 131c5c5..f63ce9b 100644
--- a/llvm/lib/IR/ConstantFold.cpp
+++ b/llvm/lib/IR/ConstantFold.cpp
@@ -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;