fix operator handling when using 128bit intrinsics

This commit is contained in:
Ralf Jung 2018-08-16 17:41:19 +02:00
parent aa760a5225
commit f2aeb5b893

View file

@ -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 {