aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2020-06-03 15:36:44 -0700
committerThomas Lively <tlively@google.com>2020-06-03 15:36:44 -0700
commit25af2126f93a76f39c3121b3ddccdfd9f1aba4be (patch)
tree766a12a794cfb8a12ec9574e46d0153e0ef61e51 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent969d2d1ea9466143e7099040f5f0735cc81963b1 (diff)
downloadllvm-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