From b99e1267be95e608fb165982a7b77fc0432be360 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 12 Oct 2018 09:07:56 +0200 Subject: [PATCH] atomics wrap around on overflow --- src/intrinsic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intrinsic.rs b/src/intrinsic.rs index b7338d4d5214..b62838fbc8bb 100644 --- a/src/intrinsic.rs +++ b/src/intrinsic.rs @@ -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())?; }