diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-29 21:58:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 21:58:22 +0200 |
| commit | 1cfe0e9c635c41309ec852c5f296f7e77fec6940 (patch) | |
| tree | f41ae6454e76f77ff5fa2e2fe765033e6a672937 /src/rustllvm/RustWrapper.cpp | |
| parent | b387a1163691a97abb47db0b99dc6073a8076675 (diff) | |
| parent | 7d5415b5a2faf5b8f76156eedfd66f94b91660a0 (diff) | |
| download | rust-1cfe0e9c635c41309ec852c5f296f7e77fec6940.tar.gz rust-1cfe0e9c635c41309ec852c5f296f7e77fec6940.zip | |
Rollup merge of #71500 - josephlr:offset, r=oli-obk,RalfJung
Make pointer offset methods/intrinsics const Implements #71499 using [the implementations from miri](https://github.com/rust-lang/miri/blob/52f5d202bdcfe8986f0615845f8d1647ab8a2c6a/src/shims/intrinsics.rs#L96-L112). I added some tests what's allowed and what's UB. Let me know if any other cases should be added. CC: @RalfJung @oli-obk
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
