diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-06 12:10:30 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-12-06 12:10:30 +0000 |
| commit | b3d837afe1190420464ccd6933b90b01be338ca2 (patch) | |
| tree | d5b111fc2d1b1e4d54b3d2a9c02d1e04146042d1 /compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs | |
| parent | acf48426b64d24f372d534f634072de1f4c7e588 (diff) | |
| parent | 57845a397ec15e4e6a561ed2c4bfa3dcf49144fb (diff) | |
| download | rust-b3d837afe1190420464ccd6933b90b01be338ca2.tar.gz rust-b3d837afe1190420464ccd6933b90b01be338ca2.zip | |
Merge commit '57845a397ec15e4e6a561ed2c4bfa3dcf49144fb' into sync_cg_clif-2024-12-06
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs index 3318c0797ec..5f1b71eff6b 100644 --- a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs +++ b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs @@ -1270,8 +1270,7 @@ fn codegen_regular_intrinsic_call<'tcx>( } sym::cold_path => { - // This is a no-op. The intrinsic is just a hint to the optimizer. - // We still have an impl here to avoid it being turned into a call. + fx.bcx.set_cold_block(fx.bcx.current_block().unwrap()); } // Unimplemented intrinsics must have a fallback body. The fallback body is obtained |
