Skip to content

SILGen: Fix bug with NSString import-as-member globals #12473

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

Conversation

slavapestov
Copy link
Contributor

This is not really the right fix if we want to have physically
addressed lvalues support bridging in general, but doing so
requires adding a new LValue component type and doing a bunch
more refactoring, so just hack in a narrow fix for now since
it only seems to occur in one case.

Fixes rdar://problem/34913892.

@slavapestov
Copy link
Contributor Author

@rjmccall Tsk, tsk. ;-)

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov force-pushed the import-as-a-crashing-member branch from b31973f to 41dd03d Compare October 16, 2017 23:52
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test Linux

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test Linux

@jrose-apple
Copy link
Contributor

Can you add a test with a nullable NSString as well?

@slavapestov
Copy link
Contributor Author

@jrose-apple a _Nullable NSString still imports as NSString and not Optional<NSString>.

"I have a horrible, horrible feeling that this is “by design”" -- @DougGregor

I'll add a test for the broken behavior so that we'll know if it ever changes.

This is not really the right fix if we want to have physically
addressed lvalues support bridging in general, but doing so
requires adding a new LValue component type and doing a bunch
more refactoring, so just hack in a narrow fix for now since
it only seems to occur in one case.

Fixes <rdar://problem/34913892>.
@slavapestov slavapestov force-pushed the import-as-a-crashing-member branch from 41dd03d to dfdd3a7 Compare October 17, 2017 02:23
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit 5992e08 into swiftlang:master Oct 17, 2017
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