Skip to content

[ClangImporter] Hack. Break deserialization cycle with NSErrorPointer on iOS and watchOS.#9726

Merged
milseman merged 1 commit into
swiftlang:masterfrom
huonw:no-cycle
May 19, 2017
Merged

[ClangImporter] Hack. Break deserialization cycle with NSErrorPointer on iOS and watchOS.#9726
milseman merged 1 commit into
swiftlang:masterfrom
huonw:no-cycle

Conversation

@huonw

@huonw huonw commented May 18, 2017

Copy link
Copy Markdown
Contributor

Addresses rdar://problem/32226279 .

I haven't yet worked out why this is only occurring on iOS and watchOS, and this is completely not the right long-term fix.

@DougGregor

Copy link
Copy Markdown
Member

This is gross :(

@jrose-apple

Copy link
Copy Markdown
Contributor

I think this'll change how we import NSError ** when we can't turn it into throws, which means we need to come up with something a little better here.

@jrose-apple

Copy link
Copy Markdown
Contributor

Sorry, I skipped a step: good working tracking this down! I'm curious about which declaration is causing the cycle too, but that might not be something we can post on GitHub.

@ematejska

Copy link
Copy Markdown
Contributor

@swift-ci smoke test

@huonw

huonw commented May 18, 2017

Copy link
Copy Markdown
Contributor Author

Wrote a comment on rdar://problem/32226279 ; let's move discussion there.

…f throws functions.

This breaks a cycle with a function in Foundation, but isn't a complete
fix: it will be similarly problematic if a function that can't have the
throws conversion is added.
@huonw

huonw commented May 19, 2017

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@milseman
milseman merged commit a1d9ff4 into swiftlang:master May 19, 2017
@milseman

Copy link
Copy Markdown
Member

@huonw please file an SR for the less hacky solution

@milseman

Copy link
Copy Markdown
Member

@jrose-apple should this be nominated for the 4.0 branch?

@jrose-apple

Copy link
Copy Markdown
Contributor

Yes, I think so.

@huonw
huonw deleted the no-cycle branch May 19, 2017 03:20
@huonw
huonw restored the no-cycle branch May 19, 2017 03:20
@milseman

Copy link
Copy Markdown
Member

I will nominate this

@jrose-apple

Copy link
Copy Markdown
Contributor

Thanks, Michael!

@milseman

Copy link
Copy Markdown
Member

@jrose-apple Could you or @huonw help me fill in the explanation, scope, and risk?

@huonw
huonw deleted the no-cycle branch May 19, 2017 18:33
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.

5 participants