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 96d41a7 commit 11bfbbcCopy full SHA for 11bfbbc
1 file changed
compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
@@ -1531,7 +1531,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
1531
1532
sym::return_address => {
1533
let val = fx.bcx.ins().get_return_address(fx.pointer_type);
1534
- let val = CValue::by_val(val, fx.layout_of(fx.tcx.types.f32));
+ let val = CValue::by_val(val, ret.layout());
1535
ret.write_cvalue(fx, val);
1536
}
1537
0 commit comments