Skip to content

Commit 22b0e3c

Browse files
committed
remove pointless cold_path impl in interpreter
1 parent 1a27566 commit 22b0e3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/intrinsics/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
12641264

12651265
sym::cold_path => {
12661266
// This is a no-op. The intrinsic is just a hint to the optimizer.
1267+
// We still have an impl here to avoid it being turned into a call.
12671268
}
12681269

12691270
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained

0 commit comments

Comments
 (0)