[llvm] r245730 - Add comment as follow up to r245712
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 13:18:40 PDT 2015
Author: dblaikie
Date: Fri Aug 21 15:18:39 2015
New Revision: 245730
URL: http://llvm.org/viewvc/llvm-project?rev=245730&view=rev
Log:
Add comment as follow up to r245712
Modified:
llvm/trunk/lib/IR/ConstantFold.cpp
Modified: llvm/trunk/lib/IR/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/ConstantFold.cpp?rev=245730&r1=245729&r2=245730&view=diff
==============================================================================
--- llvm/trunk/lib/IR/ConstantFold.cpp (original)
+++ llvm/trunk/lib/IR/ConstantFold.cpp Fri Aug 21 15:18:39 2015
@@ -1999,6 +1999,7 @@ static bool isInBoundsIndices(ArrayRef<I
/// \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;
More information about the llvm-commits
mailing list