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 ec7bdeb commit 336e40eCopy full SHA for 336e40e
1 file changed
compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
@@ -1529,6 +1529,12 @@ fn codegen_regular_intrinsic_call<'tcx>(
1529
fx.bcx.set_cold_block(fx.bcx.current_block().unwrap());
1530
}
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));
1535
+ ret.write_cvalue(fx, val);
1536
+ }
1537
+
1538
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained
1539
// by converting the `InstanceKind::Intrinsic` to an `InstanceKind::Item`.
1540
_ => {
0 commit comments