atomics wrap around on overflow
This commit is contained in:
parent
616645255a
commit
b99e1267be
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
|
|||
"xsub" => mir::BinOp::Sub,
|
||||
_ => bug!(),
|
||||
};
|
||||
// FIXME: what do atomics do on overflow?
|
||||
// Atomics wrap around on overflow.
|
||||
self.binop_ignore_overflow(op, old, rhs, ptr.into())?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue