Skip to content

Commit f2aeb5b

Browse files
committed
fix operator handling when using 128bit intrinsics
1 parent aa760a5 commit f2aeb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/const_eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl<'mir, 'tcx> super::Machine<'mir, 'tcx> for CompileTimeEvaluator {
246246
};
247247
let (dest, bb) = destination.expect("128 lowerings can't diverge");
248248
let l = ecx.read_value(args[0])?;
249-
let r = ecx.read_value(args[0])?;
249+
let r = ecx.read_value(args[1])?;
250250
if oflo {
251251
ecx.binop_with_overflow(op, l, r, dest)?;
252252
} else {

0 commit comments

Comments
 (0)