about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorAndy Sadler <andrewsadler122@gmail.com>2024-02-17 17:19:08 -0600
committerAndy Sadler <andrewsadler122@gmail.com>2024-02-17 17:24:46 -0600
commit5ac9bee7f13c83123cc3d184f50a255248e640f2 (patch)
tree1befac77d25fbd4cf28490d4e0ea4e81b7ead04c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente69f125758a2e04574192c9d884f0391dbd0a707 (diff)
downloadrust-5ac9bee7f13c83123cc3d184f50a255248e640f2.tar.gz
rust-5ac9bee7f13c83123cc3d184f50a255248e640f2.zip
fix tests/ui/simd/issue-89193.rs and mark as passing
Work around an issue where usize and isize can sometimes (but not
always) get canonicalized to their corresponding integer type.  This
causes shuffle_vector to panic, since the types of the vectors it got
passed aren't the same.

Also insert a cast on the mask element, since we might get passed a
signed integer of any size, not just i32.  For now, we always cast to
i32.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions