@@ -28,7 +28,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
28
28
right : ImmTy < ' tcx , M :: PointerTag > ,
29
29
dest : PlaceTy < ' tcx , M :: PointerTag > ,
30
30
) -> EvalResult < ' tcx > {
31
- let ( val, overflowed) = self . binary_op_val ( op, left, right) ?;
31
+ let ( val, overflowed) = self . binary_op_imm ( op, left, right) ?;
32
32
let val = Immediate :: ScalarPair ( val. into ( ) , Scalar :: from_bool ( overflowed) . into ( ) ) ;
33
33
self . write_immediate ( val, dest)
34
34
}
@@ -42,7 +42,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
42
42
right : ImmTy < ' tcx , M :: PointerTag > ,
43
43
dest : PlaceTy < ' tcx , M :: PointerTag > ,
44
44
) -> EvalResult < ' tcx > {
45
- let ( val, _overflowed) = self . binary_op_val ( op, left, right) ?;
45
+ let ( val, _overflowed) = self . binary_op_imm ( op, left, right) ?;
46
46
self . write_scalar ( val, dest)
47
47
}
48
48
}
@@ -283,9 +283,9 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
283
283
}
284
284
285
285
/// Convenience wrapper that's useful when keeping the layout together with the
286
- /// value.
286
+ /// immediate value.
287
287
#[ inline]
288
- pub fn binary_op_val (
288
+ pub fn binary_op_imm (
289
289
& self ,
290
290
bin_op : mir:: BinOp ,
291
291
left : ImmTy < ' tcx , M :: PointerTag > ,
0 commit comments