ConstantFolding tried to cast one of the scalar indices to a vector
type. Instead, use the vector type only for the first index (which
is the only one allowed to be a vector) and use its scalar type
otherwise.
Fixes PR31250.
Differential D27389
ConstantFolding: Don't crash when encountering vector GEP loladiro on Dec 3 2016, 9:16 PM. Authored by
Details ConstantFolding tried to cast one of the scalar indices to a vector Fixes PR31250.
Diff Detail
Event TimelineComment Actions This seems is fixing the same problem of https://reviews.llvm.org/D26060 Comment Actions LGTM
|
I believe this can be simplified to IntPtrScalarTy = IntPtrTy->getScalarType();