about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-11-18 08:41:28 +0100
committerRalf Jung <post@ralfj.de>2024-11-18 08:41:28 +0100
commitdff98a8a144f7ebf19d8d238aed8f0e2c2375086 (patch)
treed332034f8c759e5453b402fd5b32d1bdc72b8c6e /compiler/rustc_codegen_cranelift/src
parent3fb7e441aecc3c054d71eb4d752d06e7776e8888 (diff)
downloadrust-dff98a8a144f7ebf19d8d238aed8f0e2c2375086.tar.gz
rust-dff98a8a144f7ebf19d8d238aed8f0e2c2375086.zip
remove pointless cold_path impl in interpreter
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
-rw-r--r--compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
index b92885cc1a7..6cf1cff183d 100644
--- a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
+++ b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
@@ -1264,6 +1264,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.
         }
 
         // Unimplemented intrinsics must have a fallback body. The fallback body is obtained