You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lldb] Use canonical QualTypes to determine SwiftOptionSet formatter eligibility
When we lookup a clang type from DWARF by name, we
use the first one we find. In this test we have two
entities with the name `ComparisonResult`, en enum
and a typedef to the enum. So if we happened to find
the typedef first, we would fail to apply the `OptionSet`
formatter to it because it explicitly wants a QualType
whose type-class is an enum.
This fixes `lang/swift/enum_objc/TestEnumObjC.py` when applying
using the new `FindTypes` `TypeQuery` APIs (see
#7885)
The fix simply gets the canonical type before we check
its type-class.
(cherry picked from commit f7364b56732abeddb35082ba6002f75f26d795d0)
0 commit comments