File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -453,11 +453,6 @@ fn codegen_regular_intrinsic_call<'tcx>(
453453 fx. bcx . ins ( ) . trap ( TrapCode :: user ( 2 ) . unwrap ( ) ) ;
454454 return Ok ( ( ) ) ;
455455 }
456- sym:: likely | sym:: unlikely => {
457- intrinsic_args ! ( fx, args => ( a) ; intrinsic) ;
458-
459- ret. write_cvalue ( fx, a) ;
460- }
461456 sym:: breakpoint => {
462457 intrinsic_args ! ( fx, args => ( ) ; intrinsic) ;
463458
@@ -1267,6 +1262,10 @@ fn codegen_regular_intrinsic_call<'tcx>(
12671262 ) ;
12681263 }
12691264
1265+ sym:: cold_path => {
1266+ // This is a no-op. The intrinsic is just a hint to the optimizer.
1267+ }
1268+
12701269 // Unimplemented intrinsics must have a fallback body. The fallback body is obtained
12711270 // by converting the `InstanceKind::Intrinsic` to an `InstanceKind::Item`.
12721271 _ => {
You can’t perform that action at this time.
0 commit comments