Skip to content

Allow a borrowed address to be passed as in_guaranteed arg in partial_apply [on_stack] only #34736

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 1 commit into from
Nov 16, 2020

Conversation

meg-gupta
Copy link
Contributor

No description provided.

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@@ -25,18 +25,6 @@ bb0(%0 : $*WrapperStruct):
return %res : $()
}

sil [ossa] @test2 : $@convention(thin) (@in_guaranteed WrapperStruct) -> () {
bb0(%0 : $*WrapperStruct):
%1 = load_borrow %0 : $*WrapperStruct
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a positive test that checks that we fail.

@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

1 similar comment
@meg-gupta
Copy link
Contributor Author

@swift-ci smoke test

@meg-gupta meg-gupta merged commit 91b5c49 into swiftlang:main Nov 16, 2020
ainu-bot added a commit to google/swift that referenced this pull request Nov 16, 2020
* 'main' of github.com:apple/swift: (89 commits)
  Fix SILVerifier assert for witness_method with dynamic self type (swiftlang#34738)
  Allow a borrowed address to be passed as in_guaranteed arg in partial_apply [on_stack] only (swiftlang#34736)
  Fix test for windows/linux
  IRGen: Fix debug emission for dynamically sized stack vars
  [Testing] Add missing REQUIRES: concurrency
  [ownership] Make SILUndef always have ValueOwnershipKind::None.
  [value-lifetime] Cleanup constructors.
  [ownership] Centralize the concept of isReborrow on BorrowingOperand.
  [sil][value-lifetime] Add ValueLifetimeAnalysis::FrontierImpl = SmallVectorImpl<SILInstruction *>
  [Test] Disable partial_apply_forwarder.sil for arm64e.
  [Async CC] Unroll workaround where @main was async.
  Remove test that depends on Swift.Int metadata, which isn't around.
  [Concurrency] More cleanups for futures
  [Concurrency] Remove an unnecessary 'const' from a non-static data member.
  [Concurrency] Minor cleanups to futures.
  [Concurrency] Have future functions write their results directly.
  [Concurrency] Clarify/fix error object handling in futures.
  [Concurrency] Inline AsyncTask::FutureFragment::fragmentSize.
  [Concurrency] Turn "simple task" into just "task".
  [Concurrency] Use SchedulerPrivate for the "next waiting task" link.
  ...
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