diff options
author | Thomas Lively <tlively@google.com> | 2020-06-03 15:36:44 -0700 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2020-06-03 15:36:44 -0700 |
commit | 25af2126f93a76f39c3121b3ddccdfd9f1aba4be (patch) | |
tree | 766a12a794cfb8a12ec9574e46d0153e0ef61e51 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 969d2d1ea9466143e7099040f5f0735cc81963b1 (diff) | |
download | llvm-25af2126f93a76f39c3121b3ddccdfd9f1aba4be.zip llvm-25af2126f93a76f39c3121b3ddccdfd9f1aba4be.tar.gz llvm-25af2126f93a76f39c3121b3ddccdfd9f1aba4be.tar.bz2 |
[WebAssembly] Fix ISel crash in SIGN_EXTEND_INREG lowering
Summary:
The code previously assumed that the index of a vector extract was
constant, but this was not always true. This patch fixes the problem
by bailing out of the lowering if the index is nonconstant and also
replaces `static_cast`s in the lowering function with `cast`s because
the latter contain type-checking asserts that would make similar
issues easier to find and debug.
Reviewers: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D81025
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions