-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Sema] Fix stale reference passed to PlaceholderType::get #36948
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
cc @xedin |
@swift-ci please smoke test |
@xedin Failure here looks unrelated, think this is good to merge? |
Let’s try one more time |
@swift-ci please smoke test macOS platform |
Looks like same failure occurred on #36949, seems unrelated to these changes. (Potentially related to swiftlang/llvm-project#2851?) |
I can’t merge until macOS passes because it’s a required check, only admins can merge that :/ |
Got it! No worries at all, please enjoy the weekend :) |
Thanks, you too! |
@swift-ci please smoke test macOS platform |
Looks like the problematic test has been disabled in swiftlang/llvm-project#2854 (thanks, @ktoso!) |
@swift-ci please smoke test macOS platform |
When parsing placeholder types (see #36740) there's an odd crash in
PlaceholderType::get
that only happens in release builds. It seems to be related to a stale captured reference to theASTContext
making its way through type resolution, so this PR makes sure we theASTContext
reference down the stack explicitly to avoid any strange capture behavior.