8000 🍒 [lldb][swift] Fix GetParentIfClosure for Struct/Enum constructors by felipepiovezan · Pull Request #10938 · swiftlang/llvm-project · GitHub
[go: up one dir, main page]

Skip to content

🍒 [lldb][swift] Fix GetParentIfClosure for Struct/Enum constructors #10938

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

felipepiovezan
Copy link

No description provided.

We had a `class` called `MY_STRUCT`.

(cherry picked from commit fc9cdb2)
< 8000 /div>
There are two possible variants of constructors: allocating (Kind::Allocator)
and initializing (Kind::Constructor). When mangling a closure, the "context"
is arbitrarily chosen to be the initializing variant.
As such, we need to check both when looking for the parent of a closure.
If both exist, `Kind::Constructor` is the one containing user code, so
it is always checked first.

rdar://154309468
(cherry picked from commit c7c1565)
@felipepiovezan felipepiovezan merged commit 00e141f into swiftlang:next Jul 1, 2025
@felipepiovezan felipepiovezan deleted the felipe/task_cherry_picksGetParentIfClosure branch July 1, 2025 15:37
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.

1 participant
0