mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
53792b9c5c
Change enum->int casts to not go through MIR casts. follow-up to https://github.com/rust-lang/rust/pull/96814 this simplifies all backends and even gives LLVM more information about the return value of `Rvalue::Discriminant`, enabling optimizations in more cases.