We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb0fa3 commit 0163768Copy full SHA for 0163768
compiler/rustc_target/src/abi/call/loongarch.rs
@@ -83,6 +83,17 @@ where
83
}
84
FieldsShape::Union(_) => {
85
if !arg_layout.is_zst() {
86
+ if arg_layout.is_transparent() {
87
+ let non_1zst_elem = arg_layout.non_1zst_field(cx).expect("not exactly one non-1-ZST field in non-ZST repr(transparent) union").1;
88
+ return should_use_fp_conv_helper(
89
+ cx,
90
+ &non_1zst_elem,
91
+ xlen,
92
+ flen,
93
+ field1_kind,
94
+ field2_kind,
95
+ );
96
+ }
97
return Err(CannotUseFpConv);
98
99
0 commit comments