diff --git a/src/librustc_mir/interpret/const_eval.rs b/src/librustc_mir/interpret/const_eval.rs index d98f98bca60f..8aba49531239 100644 --- a/src/librustc_mir/interpret/const_eval.rs +++ b/src/librustc_mir/interpret/const_eval.rs @@ -246,7 +246,7 @@ impl<'mir, 'tcx> super::Machine<'mir, 'tcx> for CompileTimeEvaluator { }; let (dest, bb) = destination.expect("128 lowerings can't diverge"); let l = ecx.read_value(args[0])?; - let r = ecx.read_value(args[0])?; + let r = ecx.read_value(args[1])?; if oflo { ecx.binop_with_overflow(op, l, r, dest)?; } else {