Skip to content

[AST] DiagnosticEngine: retain strings used in tentative diagnostic arguments #26342

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 3 commits into from
Jul 25, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 25, 2019

If diagnostics are produced as part of a transaction, let's copy
strings associated with arguments into a separate long(er) term
storage which is going to be cleaned up when diagnostic is actually
emit to the consumers.

Resolves: rdar://problem/53404683

xedin added 2 commits July 24, 2019 16:59
…rguments

If diagnostics are produced as part of a transaction, let's copy
strings associated with arguments into a separate long(er) term
storage which is going to be cleaned up when diagnostic is actually
emit to the consumers.
@xedin xedin requested a review from jrose-apple July 25, 2019 00:03
@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2019

This is related to #26302 I have a test case there where we'd have two notes about label mismatch.

@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2019

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Jul 25, 2019

@swift-ci please smoke test

@xedin xedin merged commit da38e25 into swiftlang:master Jul 25, 2019
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