diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-10-31 10:06:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-31 10:06:55 -0700 |
| commit | e5f3d7f4695556a17af7c70bd31aa52f55108301 (patch) | |
| tree | 6d2b4955fbfa3264046e6e814b816454553cb85d /llvm/lib/TextAPI/BinaryReader/DylibReader.cpp | |
| parent | 91010a349a536d8d48b49566d8691d95bd2e6185 (diff) | |
| download | llvm-e5f3d7f4695556a17af7c70bd31aa52f55108301.zip llvm-e5f3d7f4695556a17af7c70bd31aa52f55108301.tar.gz llvm-e5f3d7f4695556a17af7c70bd31aa52f55108301.tar.bz2 | |
[RISCV] Fix misuse of EVT::changeVectorElementType() in legalizeScatterGatherIndexType. (#165829)
This function doesn't work well when the type is a SimpleVT, but the
changed type isn't. We need an LLVMContext to make an non-SimpleVT, but
there's nowhere to get it from.
Fix this by using EVT::getVectorVT instead.
In the added test, v7i8 is a SimpleVT, but v7i64 is not.
Diffstat (limited to 'llvm/lib/TextAPI/BinaryReader/DylibReader.cpp')
0 files changed, 0 insertions, 0 deletions
