@@ -28,7 +28,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
2828 right : ImmTy < ' tcx , M :: PointerTag > ,
2929 dest : PlaceTy < ' tcx , M :: PointerTag > ,
3030 ) -> EvalResult < ' tcx > {
31- let ( val, overflowed) = self . binary_op_val ( op, left, right) ?;
31+ let ( val, overflowed) = self . binary_op_imm ( op, left, right) ?;
3232 let val = Immediate :: ScalarPair ( val. into ( ) , Scalar :: from_bool ( overflowed) . into ( ) ) ;
3333 self . write_immediate ( val, dest)
3434 }
@@ -42,7 +42,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
4242 right : ImmTy < ' tcx , M :: PointerTag > ,
4343 dest : PlaceTy < ' tcx , M :: PointerTag > ,
4444 ) -> EvalResult < ' tcx > {
45- let ( val, _overflowed) = self . binary_op_val ( op, left, right) ?;
45+ let ( val, _overflowed) = self . binary_op_imm ( op, left, right) ?;
4646 self . write_scalar ( val, dest)
4747 }
4848}
@@ -283,9 +283,9 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
283283 }
284284
285285 /// Convenience wrapper that's useful when keeping the layout together with the
286- /// value.
286+ /// immediate value.
287287 #[ inline]
288- pub fn binary_op_val (
288+ pub fn binary_op_imm (
289289 & self ,
290290 bin_op : mir:: BinOp ,
291291 left : ImmTy < ' tcx , M :: PointerTag > ,
0 commit comments