about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJoe Richey <joerichey@google.com>2020-04-24 00:17:29 -0700
committerJoe Richey <joerichey@google.com>2020-05-25 13:09:02 -0700
commit08df3116e92356311735be2d0c588d461e16fbff (patch)
treee3c8f0edb658252370c1e07ad99834d4ea504b46 /src/rustllvm/RustWrapper.cpp
parenta0f06d11ae7fe29c8e263e2a5d8cd41b372f0283 (diff)
downloadrust-08df3116e92356311735be2d0c588d461e16fbff.tar.gz
rust-08df3116e92356311735be2d0c588d461e16fbff.zip
librustc_mir: Add support for const fn offset/arith_offset
Miri's pointer_offset_inbounds implementation has been moved into
librustc_mir as ptr_offset_inbounds (to avoid breaking miri on a
nightly update). The comments have been slightly reworked to better
match `offset`'s external documentation about what causes UB.

The intrinsic implementations are taken directly from miri.

Signed-off-by: Joe Richey <joerichey@google.com>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions