Skip to content

Commit 11bfbbc

Browse files
committed
Fix mistake in cranelift codegen
1 parent 96d41a7 commit 11bfbbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • compiler/rustc_codegen_cranelift/src/intrinsics

compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
15311531

15321532
sym::return_address => {
15331533
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));
1534+
let val = CValue::by_val(val, ret.layout());
15351535
ret.write_cvalue(fx, val);
15361536
}
15371537

0 commit comments

Comments
 (0)