diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-04-09 14:14:35 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-05-11 17:16:25 -0700 |
| commit | bb7b844d7c47dfcac42a283140a60d2635d42178 (patch) | |
| tree | d8faf90ecd4de7ea9aa910d6637dfdde6f187426 | |
| parent | 06817d1bb34398718c501d67edd6ecc07ca1723e (diff) | |
| download | rust-bb7b844d7c47dfcac42a283140a60d2635d42178.tar.gz rust-bb7b844d7c47dfcac42a283140a60d2635d42178.zip | |
Rename `unsigned_offset_from` to `sub_ptr`
| -rw-r--r-- | src/intrinsics/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index b254ca3bec8..f7a83373e87 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -721,7 +721,7 @@ fn codegen_regular_intrinsic_call<'tcx>( let diff_bytes = fx.bcx.ins().isub(ptr, base); // FIXME this can be an exact division. let diff = if intrinsic == sym::ptr_offset_from_unsigned { - // Because diff_bytes ULT isize::MAX, this would be fine as signed, + // Because diff_bytes ULE isize::MAX, this would be fine as signed, // but unsigned is slightly easier to codegen, so might as well. fx.bcx.ins().udiv_imm(diff_bytes, pointee_size as i64) } else { |
