]> git.lizzy.rs Git - rust.git/commit
Don't try to use wasm intrinsics on vectors
authorAlex Crichton <alex@alexcrichton.com>
Sun, 9 Aug 2020 01:09:40 +0000 (18:09 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 9 Aug 2020 01:09:40 +0000 (18:09 -0700)
commitb21a3de35f4841ce4f5f7cd997faf9531ea998f2
tree8b6ad83515f93895ee421d4636239aad5901c786
parent2bac92bba14f3b260b337d2a51c77c0780456e65
Don't try to use wasm intrinsics on vectors

This commit fixes an issue with #74695 where the fptosi and fptoui
specializations on wasm were accidentally used on vector types by the
`simd_cast` intrinsic. This issue showed up as broken CI for the stdsimd
crate. Here this commit simply skips the specialization on vector kinds
flowing into `fpto{s,u}i`.
src/librustc_codegen_llvm/builder.rs