Skip to content

[lldb] Fix incorrect format specifiers #9616

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 5 commits into from
Nov 19, 2024

Conversation

adrian-prantl
Copy link

depends on #9615

Now that all scratch contexts are using precise per-CU compiler
invocations, the infrastructure for the per-module fallback scratch
context is no longer needed, since it is actually less precise than
the "normal" contexts. This patch removes the notion of a fallback
SwiftASTContext entirely.
This mechanism was put into place to deal with SwiftASTContexts being
torn down and replaced. While that may still happen, we no have a much
better solution for the problem of dangling type references:
CompilerType now holds a weak_ptr to the type system so it's safe to
destroy a type system.
@adrian-prantl adrian-prantl requested review from augusto2112 and JDevlieghere and removed request for JDevlieghere November 16, 2024 03:32
@adrian-prantl
Copy link
Author

@swift-ci test

Copy link

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

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

6f910e1d07ce914152acda44b5959f7ae7c80b69 LGTM

@adrian-prantl adrian-prantl force-pushed the fmt-spec branch 2 times, most recently from bfcc9e7 to 984f518 Compare November 18, 2024 21:49
@adrian-prantl
Copy link
Author

@swift-ci test

These used to be necessary because there used to be context-specific
scratch contexts, however, now there is only one global
TypeSystemSwiftTypeRefForExpressions, and it manages multiple
SwiftASTContexts. Therefore it is no longer necessary to have
Swift-specific hooks in Target and ValueObject.
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 008c49d into swiftlang:stable/20240723 Nov 19, 2024
2 of 3 checks passed
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