-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[mandatory-inlining] Update for ownership. #22085
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
[mandatory-inlining] Update for ownership. #22085
Conversation
This is rebased from many months ago with some small updates for recent work by Arnold.
@swift-ci test |
@swift-ci test source compatibility |
The failure in the Debug Source Compat Suite is a UPASS. |
Build failed |
ownership::ErrorBehaviorKind::ReturnFalseOnLeakAssertOtherwise; | ||
|
||
// Ok, at this point we know that we have a direct SSA relationship in between | ||
// our partial_apply and |
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.
and ?
} | ||
|
||
// If we have an owned value, we need to insert a copy here for lifetime | ||
// extension purposes. |
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.
Could we improve the comment: If we have an owned value, we insert the copy for two purposes: first, to balance the consuming argument, this also has the effect to satisfy the second purpose of extending the lifetime.
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.
looks good to me
@swift-ci test macOS platform |
@aschwaighofer I am going to fix the changes you suggested post-commit. |
@gottesmm Two tests are failing for me locally: SILOptimizer/mandatory_inlining.sil
SILOptimizer/mandatory_inlining_ownership2.sil
|
@benrimmington Thanks. I am already aware of this/investigating. What is weird is that this isn't failing on ci.swift.org AFAIKT. |
@benrimmington undefined behavior strikes again! I didn't null initialize a pointer that needed to be null initialize (we need to setup a ub-san bot for swift). |
This is rebased from many months ago with some small updates for recent work by
Arnold.