Skip to content

Commit

Permalink
Update src/librustc_mir/interpret/intrinsics.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
  • Loading branch information
nbdd0121 and oli-obk authored Jun 27, 2020
1 parent 779b05d commit 8b43012
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc_mir/interpret/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
}
sym::likely | sym::unlikely => {
// These just return their argument
let a = self.read_immediate(args[0])?;
self.write_immediate(*a, dest)?;
self.copy_op(args[0], dest)?;
}
// FIXME(#73156): Handle source code coverage in const eval
sym::count_code_region => (),
Expand Down

0 comments on commit 8b43012

Please sign in to comment.