Skip to content

Commit b5840cf

Browse files
committed
NCGenerics: workaround lldb bug
1 parent ca25edb commit b5840cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/ConformanceLookup.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,11 @@ static bool conformsToInvertible(CanType type, InvertibleProtocolKind ip) {
848848

849849
assert(!type->is<PackExpansionType>());
850850

851+
// FIXME: lldb misbehaves by getting here with a SILPackType.
852+
// just pretend it it conforms.
853+
if (type->is<SILPackType>())
854+
return true;
855+
851856
// The SIL types in the AST do not have real conformances, and should have
852857
// been handled in SILType instead.
853858
assert(!(type->is<SILBoxType,

0 commit comments

Comments
 (0)