Skip to content

[5.2] SILGen: Fix withoutActuallyEscaping of 'c' closures #29570

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

Conversation

aschwaighofer
Copy link
Contributor

They don't have a context and therefore are not consumed.

Fixes a failing assert.

  • Description: The compiler asserts on code that uses
    withoutActuallyEscaping on a ‘c’ convention closure.

  • Scope: Compiling source code that uses that combination will assert
    and fail to compile. In no asserts build the compilation succeeds and
    generates correct code (i.e the assert failure is inconsequential). The
    problem existed in previously released version of the compiler.

  • Testing: A swift regression test was added.

  • Reviewed: Andrew T

Original PR: #29569

rdar://59046275

They don't have a context and therefore are not consumed.

Fixes a failing assert.

* Description: The compiler asserts on code that uses
withoutActuallyEscaping on a ‘c’ convention closure.

* Scope: Compiling source code that uses that combination will assert
and fail to compile. In no asserts build the compilation succeeds and
generates correct code (i.e the assert failure is inconsequential). The
problem existed in previously released version of the compiler.

* Testing: A swift regression test was added.

* Reviewed: Andrew T

Original PR: swiftlang#29569

rdar://59046275
@aschwaighofer aschwaighofer requested a review from a team as a code owner January 31, 2020 17:37
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@aschwaighofer aschwaighofer merged commit 66c06ab into swiftlang:swift-5.2-branch Jan 31, 2020
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