Skip to content

[sil-ownership-verifier] Allow class_method to take a metatype or a non-trivial type. #10830

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

Merged
merged 2 commits into from
Jul 9, 2017

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jul 9, 2017

[sil-ownership-verifier] Allow class_method to take a metatype or a non-trivial type.

rdar://31880847

gottesmm added 2 commits July 8, 2017 21:56
…fore we store it.

Sometimes in SILGenPattern, we need use an indirect cast on object that does
not require re-abstraction as an optimization. A notable case where this happens
are various casts related to NSError. In such a case, if we have a borrowed cast
operand, perform a copy before the store to preserve semantic sil invariants.

rdar://31880847
@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 9, 2017

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 3265808 into swiftlang:master Jul 9, 2017
@gottesmm gottesmm deleted the ownership_verifier_class_method branch July 9, 2017 06:32
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