projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2071d7a
)
Add comment as follow up to r245712
author
David Blaikie
<dblaikie@gmail.com>
Fri, 21 Aug 2015 20:18:39 +0000
(20:18 +0000)
committer
David Blaikie
<dblaikie@gmail.com>
Fri, 21 Aug 2015 20:18:39 +0000
(20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245730
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/ConstantFold.cpp
b/lib/IR/ConstantFold.cpp
index 131c5c51790414c6b1c81e27aaa3a1710c22d042..f63ce9bbf038a1fda1da0a987341727618729f24 100644
(file)
--- a/
lib/IR/ConstantFold.cpp
+++ b/
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;