Skip to content

[lldb] Introduce precise Fallback SwiftASTContexts. #9382

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 1 commit into from
Oct 8, 2024

Conversation

adrian-prantl
Copy link

When we switched to precise compiler invocations, we still kept the per-module fallback SwiftASTContext. This can be a problem when also using explicit modules, because explicit module imports only work with precise compiler invocations. This patch changes
TypeSystemSwiftTyperef to pass its SymbolContext when creating its fallback SwiftASTContext. This basically turns on precise compiler invocationsfor fallback contexts. The price is more compiler instances, but this is only way to make them work reliably with explicit modules.

rdar://137087616

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl requested review from kastiglione and augusto2112 and removed request for JDevlieghere and kastiglione October 4, 2024 02:02
@adrian-prantl adrian-prantl force-pushed the 137087616 branch 2 times, most recently from 84de0e7 to 700aecf Compare October 5, 2024 21:18
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test

When we switched to precise compiler invocations, we still kept the
per-module fallback SwiftASTContext. This can be a problem when also
using explicit modules, because explicit module imports only work with
precise compiler invocations. This patch changes
TypeSystemSwiftTyperef to pass its SymbolContext when creating its
fallback SwiftASTContext. This basically turns on precise compiler
invocationsfor fallback contexts. The price is more compiler
instances, but this is only way to make them work reliably with
explicit modules.

rdar://137087616
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit bcd2817 into swiftlang:stable/20240723 Oct 8, 2024
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.

2 participants