commit | 83dc06334ff95ad18a951d0bb540290510f2f81a | [log] [tgz] |
---|---|---|
author | Keno Fischer <kfischer@college.harvard.edu> | Thu Dec 08 17:22:35 2016 +0000 |
committer | Keno Fischer <kfischer@college.harvard.edu> | Thu Dec 08 17:22:35 2016 +0000 |
tree | c2e08f3866c473a4ca36372eda77ef00d09831db | |
parent | 23e3fe93ac88f1b55229385df369aa04678ae342 [diff] |
ConstantFolding: Don't crash when encountering vector GEP 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. Reviewers: majnemer Differential Revision: https://reviews.llvm.org/D27389 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289073 91177308-0d34-0410-b5e6-96231b3b80d8