Skip to content

Commit 8b43012

Browse files
nbdd0121oli-obk
andauthored
Update src/librustc_mir/interpret/intrinsics.rs
Co-authored-by: Oliver Scherer <[email protected]>
1 parent 779b05d commit 8b43012

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_mir/interpret/intrinsics.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
401401
}
402402
sym::likely | sym::unlikely => {
403403
// These just return their argument
404-
let a = self.read_immediate(args[0])?;
405-
self.write_immediate(*a, dest)?;
404+
self.copy_op(args[0], dest)?;
406405
}
407406
// FIXME(#73156): Handle source code coverage in const eval
408407
sym::count_code_region => (),

0 commit comments

Comments
 (0)