diff options
| author | bors <bors@rust-lang.org> | 2019-04-12 14:38:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-04-12 14:38:15 +0000 |
| commit | 9a612b2348212d84fa0b839a4c18e4a13fafaf05 (patch) | |
| tree | 6d7923180ba1e75c157313db24e9ab8354c8be01 /src/rustllvm/RustWrapper.cpp | |
| parent | 5b96425699476ccfc4c56185067d80cb792044a3 (diff) | |
| parent | 7c626a67ba02bc7b7bcb5a7e7809e9d54e099d2c (diff) | |
| download | rust-9a612b2348212d84fa0b839a4c18e4a13fafaf05.tar.gz rust-9a612b2348212d84fa0b839a4c18e4a13fafaf05.zip | |
Auto merge of #59651 - tmandry:discr-index, r=eddyb
Add discr_index to multi-variant layouts We remove the assumption that the discriminant is always field 0, in preparations for layouts like generators where this is not (always) going to be the case. Specifically, upvars are going to go before the discriminant. In theory, it's possible to remove _that_ assumption instead and keep the discriminant at field index 0, but one assumption or the other had to go :) There is one place I know of in the debuginfo code where we'll still need to remove assumptions that the discriminant is the _only_ field. I was planning on doing this along with the upcoming generator change, which will also include tests that exercise the code changing in this PR. r? @eddyb cc @oli-obk cc @cramertj
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
