Skip to content

[parse/sema] Give all case bodies their own var decls without using t… #23499

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

Conversation

gottesmm
Copy link
Contributor

…hose var decls for anything.

This is a step in the direction of fixing the fallthrough bug. Specifically, in
this commit I give case stmts a set of var decls for the bodies of the case
statement. I have not wired them up to anything except the var decl
list/typechecking.

rdar://47467128

@gottesmm gottesmm requested review from akyrtzi and nathawes March 22, 2019 20:45
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

In a forthcoming commit I am going to change emission to use these. At least with this commit we know that the basic functionality around the var decl linked list is not broken by introducing these case body var decls into that list.

…hose var decls for anything.

This is a step in the direction of fixing the fallthrough bug. Specifically, in
this commit I give case stmts a set of var decls for the bodies of the case
statement. I have not wired them up to anything except the var decl
list/typechecking.

rdar://47467128
@gottesmm gottesmm force-pushed the pr-7c99cd81f730147d0e6b637f864da32d1511a450 branch from ab4c6d8 to b50d878 Compare March 25, 2019 17:31
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

2 similar comments
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@nathawes I think this test is going to pass. Can I get that review?

@gottesmm
Copy link
Contributor Author

@nathawes it did pass.

Copy link
Contributor

@nathawes nathawes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gottesmm gottesmm merged commit 86888ce into swiftlang:master Mar 25, 2019
@gottesmm gottesmm deleted the pr-7c99cd81f730147d0e6b637f864da32d1511a450 branch March 25, 2019 19:14
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.

2 participants