Rename checked_binop_checks_overflow.

This commit is contained in:
Camille GILLOT 2023-02-12 15:31:34 +00:00
parent a5769193d1
commit c1a0f8205c
3 changed files with 8 additions and 7 deletions

View file

@ -815,8 +815,8 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
}
#[inline(always)]
fn checked_binop_checks_overflow(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool {
ecx.tcx.sess.overflow_checks()
fn ignore_checkable_overflow_assertions(ecx: &MiriInterpCx<'mir, 'tcx>) -> bool {
!ecx.tcx.sess.overflow_checks()
}
#[inline(always)]