Skip to content

Multiple fixes to fix the release builds #5193

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

swiftix
Copy link
Contributor

@swiftix swiftix commented Oct 8, 2016

This PR contains 3 small fixes that fix the release build.

The fixes mostly address the use-after-destruction errors.

rdar://28678981

@swiftix
Copy link
Contributor Author

swiftix commented Oct 8, 2016

@swift-ci Please smoke test

…cializations static. NFC.

There is no reason to create this constant set dynamically again and again.
Provide proper copy constructors to ensure correctness. And forbid assignments between  SILOpenedArchetypesTracker objects.
Until now those copy constructors were automatically generated by the C++ compiler, but it was wrong, because two SILOpenedArchetypesTracker objects would sometimes share their internal representations, which resulted in a use-after-destruction bugs.
According to the documentation, llvm::function_ref is better suited for function parameters taking closures.
But in this case we need to store a closure in the callback field and then invoke it multiple times. Therefore it is more appropriate to use std::function for this purpose.
@swiftix swiftix force-pushed the wip-sil-opened-archetypes-tracker-fixes branch from ca70050 to 6c71745 Compare October 8, 2016 09:55
@swiftix
Copy link
Contributor Author

swiftix commented Oct 8, 2016

@swift-ci Please smoke test

1 similar comment
@swiftix
Copy link
Contributor Author

swiftix commented Oct 8, 2016

@swift-ci Please smoke test

@swiftix
Copy link
Contributor Author

swiftix commented Oct 9, 2016

@swift-ci Please smoke test

1 similar comment
@swiftix
Copy link
Contributor Author

swiftix commented Oct 9, 2016

@swift-ci Please smoke test

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.

1 participant