We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 3c11791d099a492f95fad8536f56b7ce
relates to:
Issue Description:
given the following code:
func fooauto(_ apply: @autoclosure () -> UInt16) { if apply() == 4 { fatalError() } } func foononatuo(_ apply: () -> UInt16) { if apply() == 4 { fatalError() } } func fooregular(_ value: UInt16) { if value == 4 { fatalError() } } func test1() { var f: UInt16 = 10 fooregular(f) f = 4 } func test2() { var f: UInt16 = 10 fooauto(f) f = 4 } func test3() { var f: UInt16 = 10 foononatuo { return f } f = 4 }
I would expect none of them to ever call malloc in release mode
test2 and 3 currently do
The text was updated successfully, but these errors were encountered:
We haven't done anything special with non-escaping closures yet (partly) because we haven't implemented the checking for withoutActuallyEscaping.
withoutActuallyEscaping
@jckarter, is there a bug for this already?
Sorry, something went wrong.
This might fall under @atrick's umbrella for fixing the closure ABI, SR-5441.
No branches or pull requests
Additional Detail from JIRA
md5: 3c11791d099a492f95fad8536f56b7ce
relates to:
Issue Description:
given the following code:
I would expect none of them to ever call malloc in release mode
test2 and 3 currently do
The text was updated successfully, but these errors were encountered: