Skip to content

[4.2] IRGen: Fix witness-table accessors for conditional conformances #15423

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

Conversation

aschwaighofer
Copy link
Contributor

Cherry-pick of #15397.

The conditional conformance's witness table accessor function takes as
arugment an array of conditional conformances in memory. But we used to
mark the accessor function with LLVM's readnone attribute. In optimized
mode this would cause the store to this array to be removed and crashes
ensued.

rdar://38624842
SR-7228

Cherry-pick of swiftlang#15397.

The conditional conformance's witness table accessor function takes as
arugment an array of conditional conformances in memory. But we used to
mark the accessor function with LLVM's readnone attribute. In optimized
mode this would cause the store to this array to be removed and crashes
ensued.

rdar://38624842
SR-7228
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test and merge

@swift-ci swift-ci merged commit 8f6a816 into swiftlang:swift-4.2-branch Mar 22, 2018
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