Skip to content
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

[Sema] Add missing null check for getAttachedResultBuilder #80129

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

hamishknight
Copy link
Contributor

I haven't been able to come up with a test case, but it seems like it's possible for the attribute to be invalidated during the call to visitCustomAttr, in which case getAttachedResultBuilder can return nullptr.

rdar://118642163

I haven't been able to come up with a test case, but it seems like
it's possible for the attribute to be invalidated during the call
to `visitCustomAttr`, in which case `getAttachedResultBuilder` can
return `nullptr`.

rdar://118642163
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please test macOS

@hamishknight hamishknight merged commit 77dd7e2 into swiftlang:main Mar 20, 2025
5 checks passed
@hamishknight hamishknight deleted the rdar118642163 branch March 20, 2025 10:03
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