diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-22 11:32:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-22 11:32:18 +0200 |
| commit | 2059112eb40619d39f89102f832c4450d6b8ffc5 (patch) | |
| tree | 8645542cf01b7df8bf848de634845272ab815390 /src/rustllvm/RustWrapper.cpp | |
| parent | c60b675e280fedded8d8487acd051cd342e486f2 (diff) | |
| parent | 0148a7f26ce636ac22ac7797dcd7d292c59e8576 (diff) | |
| download | rust-2059112eb40619d39f89102f832c4450d6b8ffc5.tar.gz rust-2059112eb40619d39f89102f832c4450d6b8ffc5.zip | |
Rollup merge of #71610 - divergentdave:InvalidUndefBytes-range, r=RalfJung
InvalidUndefBytes: Track size of undef region used This PR adds a size to `UndefinedBehaviorInfo::InvalidUndefBytes`, to keep track of how many undefined bytes in a row were accessed, and changes a few methods to pass this information through. This additional information will eventually be used in Miri to improve diagnostics for this UB error. See also rust-lang/miri#1354 for prior discussion. I expect Miri will break the next time its submodule is updated, due to this change to the `InvalidUndefBytes`. (The current commit for src/tools/miri predates rust-lang/miri#1354, and thus does not try to destructure the `InvalidUndefBytes` variant) I have a corresponding change prepared for that repository. r? @RalfJung
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
