Skip to content

[DNM] Parser attempt to Fallthrough Problem #23056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Mar 4, 2019

No description provided.

gottesmm added 3 commits March 7, 2019 13:35
…iple cast items.

There was a bug here where we were emitting a shared case if we had arguments.
That is why we needed the hacked in deletion of that block when we emitted
shared blocks. I was able to replace that with an assert to make sure that we do
not regress.

This additionally improved our code generation by eliminating a potential extra
copy when we had such a case. That is where the test updates come from.
…hose var decls for anything.

Intermediate step towards fixing the multiple fallthrough + associated value
bug. With these, all of the weird problems with SILGen pattern fallthroughs go
away since all case bodies will have their own var decls.

rdar://47467128
@gottesmm gottesmm closed this Apr 7, 2019
@gottesmm gottesmm deleted the typechecke branch April 7, 2019 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant