Skip to content
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

Sema: Small fixes for result builder inference #76749

Merged
merged 9 commits into from
Oct 11, 2024

Conversation

AnthonyLatsis
Copy link
Collaborator

Fixes #76362, fixes #76746, fixes #76747.

These are technically source breaking, but the cases in which they break source are quite niche.

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test Linux

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM! I second Hamish's comment about BraceHasReturnRequest it would be good to do at least that here.

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test Linux

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test Linux

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test source compatibility release

lib/Sema/TypeChecker.h Outdated Show resolved Hide resolved
lib/Sema/BuilderTransform.cpp Outdated Show resolved Hide resolved
lib/Sema/BuilderTransform.cpp Outdated Show resolved Hide resolved
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test macOS

…nctionRef`

Also rename it to `getExplicitReturnStmts` for clarity and have it
take a `SmallVector` out parameter instead as a small optimization and
to discourage use of this new method as an alternative to
`AnyFunctionRef::bodyHasExplicitReturnStmt`.
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test source compatibility release

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis merged commit 8519334 into swiftlang:main Oct 11, 2024
4 checks passed
@AnthonyLatsis AnthonyLatsis deleted the amanita-muscaria branch October 11, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants