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
[silgenpattern] Fix pattern emission of tuples with address only and … #19959
[silgenpattern] Fix pattern emission of tuples with address only and … #19959
Conversation
…loadable components. The problem here was that if we had a tuple with mixed address only and loadable components and we used take on success during pattern matching, we would load the loadable component with a load [take] and then pass it as take on success. Instead we load the loadable components of the tuple using a load_borrow and make the cast consumption kind BorrowAlways. This can not happen with enum element emission since enum element emission does not support take_on_success so the problem can not occur there. SR-9029 rdar://45345844
@clackary I think this fixes the source compat stuff. |
@swift-ci smoke test |
@swift-ci test source compatibility |
I tested locally that fluent/SwiftLint are passing now. |
18:26:44 UPASS: https://bugs.swift.org/browse/SR-9029, fluent, 4.2, 270b6f, Swift Package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It looks like the reactive cocoa/reactive swift failures aren't mine. They are occuring already here: https://ci.swift.org/view/all/job/swift-master-source-compat-suite-debug/323/console |
This reverts commit 70ddb37. I fixed these in: apple/swift#19959
Got ufails also on the release build. I want to get this in... committing! |
erm UPasses ; ). |
…loadable components.
The problem here was that if we had a tuple with mixed address only and loadable
components and we used take on success during pattern matching, we would load
the loadable component with a load [take] and then pass it as take on success.
Instead we load the loadable components of the tuple using a load_borrow and
make the cast consumption kind BorrowAlways.
This can not happen with enum element emission since enum element emission does
not support take_on_success so the problem can not occur there.
SR-9029
rdar://45345844