diff --git a/docs/LangRef.html b/docs/LangRef.html index c07d0e0d592..313bf833471 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -3629,7 +3629,7 @@ the pointer before continuing calculation.
The type of each index argument depends on the type it is indexing into. When indexing into a (packed) structure, only i32 integer constants are allowed. When indexing into an array, pointer or vector, -only integers of 16, 32 or 64 bits are allowed (also non-constants). 16-bit +integers of any width are allowed (also non-constants). 16-bit values will be sign extended to 32-bits if required, and 32-bit values will be sign extended to 64-bits if required.
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index c85395f6201..4a53fcf6f83 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -1410,9 +1410,8 @@ void PointerType::typeBecameConcrete(const DerivedType *AbsTy) { } bool SequentialType::indexValid(const Value *V) const { - if (const IntegerType *IT = dyn_cast