diff options
| author | C Jones <code@calebjones.net> | 2018-05-01 15:26:49 -0400 |
|---|---|---|
| committer | C Jones <code@calebjones.net> | 2018-05-07 22:14:34 -0400 |
| commit | 5b94e9f053c3fecb0e29c89e453ecaf07d97218c (patch) | |
| tree | 7436f0906cfcd11722cc843fee28606463f44aca /src/rustllvm/RustWrapper.cpp | |
| parent | fa62eba92ad9a3d25b200835a5cd3ca48b700d75 (diff) | |
| download | rust-5b94e9f053c3fecb0e29c89e453ecaf07d97218c.tar.gz rust-5b94e9f053c3fecb0e29c89e453ecaf07d97218c.zip | |
Split into_slices() to avoid making extra slices
This splits into_slices() into into_key_slice() and into_val_slice(). While the extra calls would get optimized out, this is a useful semantic change since we call keys() while iterating, and we don't want to construct and out-of-bounds val() pointer in the process if we happen to be pointing to the shared static root. This also paves the way for doing the alignment handling conditional differently for the keys and values.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
