diff options
author | David Sherwood <david.sherwood@arm.com> | 2020-06-19 14:33:20 +0100 |
---|---|---|
committer | David Sherwood <david.sherwood@arm.com> | 2020-06-25 07:28:19 +0100 |
commit | ee26a31e7b02e124d71091d47f2ae624774e5e0a (patch) | |
tree | d8c42fb90da49471cf2328406fb10be74301a71a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4c6548222b3c41d024581d28f42b3f02510bcfe3 (diff) | |
download | llvm-ee26a31e7b02e124d71091d47f2ae624774e5e0a.zip llvm-ee26a31e7b02e124d71091d47f2ae624774e5e0a.tar.gz llvm-ee26a31e7b02e124d71091d47f2ae624774e5e0a.tar.bz2 |
[SVE] Make ConstantFoldGetElementPtr work for scalable vectors of indices
This patch fixes a compiler crash that was hit when trying to simplify
the following code:
getelementptr [2 x i64], [2 x i64]* null, i64 0, <vscale x 2 x i64> zeroinitializer
For the case where we have a null pointer value like above, we just
need to ensure we don't assume the indices are always fixed width.
Differential Revision: https://reviews.llvm.org/D82183
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions