Skip to content

rustc: don't use union layouts for tagged union enums. - #47007

Merged
bors merged 1 commit into
rust-lang:masterfrom
eddyb:issue-46897
Dec 27, 2017
Merged

rustc: don't use union layouts for tagged union enums.#47007
bors merged 1 commit into
rust-lang:masterfrom
eddyb:issue-46897

Conversation

@eddyb

@eddyb eddyb commented Dec 25, 2017

Copy link
Copy Markdown
Contributor

Fixes #46897, fixes #43517 (AFAICT from the testcases).
This PR doesn't add any testcases, we should try to at least get perf ones (cc @Mark-Simulacrum).
I couldn't find an example in those issues where the choice of LLVM array vs struct (with N identical fields) for padding filler types is still needed, on top of this change, to prevent excessive LLVM sinking.

r? @arielb1

@arielb1

arielb1 commented Dec 26, 2017

Copy link
Copy Markdown
Contributor

Stop the fire:

@bors r+

@bors

bors commented Dec 26, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 97228f5 has been approved by arielb1

@bors

bors commented Dec 27, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 97228f5 with merge 71ed31f...

bors added a commit that referenced this pull request Dec 27, 2017
rustc: don't use union layouts for tagged union enums.

Fixes #46897, fixes #43517 (AFAICT from the testcases).
This PR doesn't add any testcases, we should try to at least get perf ones (cc @Mark-Simulacrum).
I couldn't find an example in those issues where the choice of LLVM array vs struct (with N identical fields) for padding filler types is still needed, *on top of* this change, to prevent excessive LLVM sinking.

r? @arielb1
@kennytm kennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 27, 2017
@bors

bors commented Dec 27, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: arielb1
Pushing 71ed31f to master...

@bors
bors merged commit 97228f5 into rust-lang:master Dec 27, 2017
@eddyb
eddyb deleted the issue-46897 branch December 27, 2017 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

4 participants