Skip to content

Cherry pick fixes from 5.0 to swift-5.1-branch #22821

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

bob-wilson
Copy link
Contributor

@bob-wilson bob-wilson commented Feb 22, 2019

The PR includes 2 fixes that were merged to swift-5.0-branch without being pulled in for the 5.1 branch:

rdar://problem/48208253: Rintaro's code completion fix
rdar://problem/48239213: Andy's change to disable merging of read/modify exclusivity access markers

For `Initializer` decl context, type context analyzer should look into
its parent context because that might constrain initializer's type.

rdar://problem/48208253
@bob-wilson
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ed3aeab9d26e9166392bb888ff8665b071f45860

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ed3aeab9d26e9166392bb888ff8665b071f45860

@slavapestov
Copy link
Contributor

Please remove my two patches from this PR -- I'm merging them in #22819

@bob-wilson
Copy link
Contributor Author

OK, let's try again without Slava's changes.

@bob-wilson
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - ed3aeab9d26e9166392bb888ff8665b071f45860

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - ed3aeab9d26e9166392bb888ff8665b071f45860

@bob-wilson
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - edc2076faa40be1c2dfe707b4d8d72ced26e893e

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - edc2076faa40be1c2dfe707b4d8d72ced26e893e

@bob-wilson
Copy link
Contributor Author

I don't understand these build failures. Trying yet again....

@bob-wilson
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7964a9d1965e5480405cb890c92918ea33e9f12e

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 7964a9d1965e5480405cb890c92918ea33e9f12e

@bob-wilson
Copy link
Contributor Author

I reproduced the failure locally. The IRGen/class_resilience_objc.swift test is failing this CHECK line:

// CHECK: @"$s21class_resilience_objc27ClassWithEmptyThenResilientC9resilient0I7_struct0H3IntVvpWvd" = hidden global [[INT]] 0,

because the output has:

hidden global i64 8, align 8

@rjmccall Do you have any idea what is wrong here? There were some differences between 5.0 and master and I tried to get the right adjustments for 5.1 (which is in between those).

@rjmccall
Copy link
Contributor

@bob-wilson I already pulled that commit to 5.1 in #22818.

When two access scopes have different access types, it is not safe to
merge them into one access. Doing so will introduce false conflicts
which manifest as crashes in user code.

To do this optimization, we would need additional data flow information
about *potential* read conflicts before converting a read to a modify
access.

Fixes rdar://48239213: Fatal access conflict detected.
@bob-wilson
Copy link
Contributor Author

OK, dropping John's change.... Let's try again.

@bob-wilson
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 7964a9d1965e5480405cb890c92918ea33e9f12e

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 7964a9d1965e5480405cb890c92918ea33e9f12e

@bob-wilson
Copy link
Contributor Author

@swift-ci please test linux platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - cafdf05

@bob-wilson
Copy link
Contributor Author

@swift-ci please test linux platform

@bob-wilson bob-wilson merged commit ebc7dcc into swiftlang:swift-5.1-branch Feb 28, 2019
@bob-wilson bob-wilson deleted the cherry-picks-for-5.1 branch February 28, 2019 21: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.

6 participants