mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-16 07:54:55 -04:00
53e4b9dd74
rustc_codegen_ssa: Fix for codegen_get_discr When doing the optimized implementation of getting the discriminant, the arithmetic needs to be done in the tag type so wrapping behavior works correctly. Fixes #104519
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.