Skip to content

[lldb][embedded] Keep clang typealiases when building field descriptors - #13907

Open
augusto2112 wants to merge 1 commit into
swiftlang:stable/21.xfrom
augusto2112:embedded-c-type-ivar
Open

[lldb][embedded] Keep clang typealiases when building field descriptors#13907
augusto2112 wants to merge 1 commit into
swiftlang:stable/21.xfrom
augusto2112:embedded-c-type-ivar

Conversation

@augusto2112

@augusto2112 augusto2112 commented Aug 17, 2026

Copy link
Copy Markdown

Typically, we want to canonicalize types before building field
descriptors, as reflection metadata doesn't store field descriptors
either. However, when building a descriptor for an aliased clang type,
reflection metadata keeps the typelias, which it asks the type info
provider to resolve. When building descriptors out of DWARF, match what
reflection metadata does, and don't resolve clang typealiases when
canonicalizing.

Assisted-by: Claude

rdar://185156293

@augusto2112
augusto2112 requested a review from a team as a code owner August 17, 2026 23:40
@augusto2112

Copy link
Copy Markdown
Author

@swift-ci test

@augusto2112
augusto2112 force-pushed the embedded-c-type-ivar branch from 2174c45 to b68a46e Compare August 17, 2026 23:49
@augusto2112

Copy link
Copy Markdown
Author

@swift-ci test

Comment thread lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserSwiftDescriptorFinder.cpp Outdated
Typically, we want to canonicalize types before building field
descriptors, as reflection metadata doesn't store field descriptors
either. However, when building a descriptor for an aliased clang type,
reflection metadata keeps the typelias, which it asks the type info
provider to resolve. When  building descriptors out of DWARF, match what
reflection metadata does, and don't resolve clang typealiases when
canonicalizing.

Assisted-by: Claude

rdar://185156293
@augusto2112
augusto2112 force-pushed the embedded-c-type-ivar branch from b68a46e to be83ed0 Compare August 18, 2026 17:38
@augusto2112

Copy link
Copy Markdown
Author

@swift-ci test

@augusto2112

Copy link
Copy Markdown
Author

@swift-ci test Windows

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