-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: assertion failed: matches!(scalar, Scalar::Int(..))
#131064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Command: Program output
|
Seems like a bug in GVN, calling I think the code that goes wrong is this: rust/compiler/rustc_mir_transform/src/gvn.rs Lines 566 to 577 in bd31e3e
An Cc @cjgillot |
#131068 should fix this |
…thercote Don't use Immediate::offset to transmute pointers to integers This applies the relatively new `assert_matches_abi` check in the `offset` operation on immediates, which makes sure that if offsets are used to alter the layout (which is possible because the field layout is arbitrarily picked by the caller), this is not done in a way that breaks the invariant of the `Immediate` type. This leads to ICEs in a GVN mir-opt test, so the second commit fixes GVN. Fixes rust-lang/rust#131064.
auto-reduced (treereduce-rust):
original code
original:
Version information
The text was updated successfully, but these errors were encountered: