1
Fork 0

Adapt interpreter.

This commit is contained in:
Camille GILLOT 2023-02-11 17:12:57 +00:00
parent 7f36a3fcd7
commit 085eaa7ee3
4 changed files with 3 additions and 15 deletions

View file

@ -137,7 +137,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
}
Assert { ref cond, expected, ref msg, target, cleanup } => {
let ignored = M::checked_binop_checks_overflow(self)
let ignored = !M::checked_binop_checks_overflow(self)
&& match msg {
mir::AssertKind::OverflowNeg(..) => true,
mir::AssertKind::Overflow(op, ..) => op.is_checkable(),