Skip to content

SILGen: Don’t make class accessors transparent. #6400

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
Dec 20, 2016

Conversation

eeckstein
Copy link
Contributor

Because when they are inlined they might access hidden symbols in another module, like the field offset variable.

fixes rdar://problem/29707641

@slavapestov Thanks for your help!

@eeckstein
Copy link
Contributor Author

@swift-ci Please smoke test and merge

@eeckstein
Copy link
Contributor Author

@swift-ci Please test

@eeckstein
Copy link
Contributor Author

@jckarter, @slavapestov Can you please take a look at that?

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 91429a2582ee8ffea92b93e4afa126e2543a4f2f
Test requested by - @eeckstein

@@ -1,5 +1,7 @@
// RUN: true

import Foundation
Copy link
Contributor

Choose a reason for hiding this comment

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

We want to make tests cross platform where possible. Can you split off a new test if you want to test NSObject subclasses?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a #if _runtime(_ObjC)

Because when they are inlined they might access hidden symbols in another module, like the field offset variable.

fixes rdar://problem/29707641
@eeckstein
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor

Looks good, thanks for fixing this!

@eeckstein eeckstein merged commit 4662674 into swiftlang:master Dec 20, 2016
@eeckstein eeckstein deleted the silgen-fix branch December 20, 2016 18:06
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.

3 participants