Skip to content

Commit 49a045c

Browse files
committed
handle ExistentialMetatype in SwiftLanguageRuntimeImpl
1 parent ff5203d commit 49a045c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Target/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
10461046
if (auto *rti =
10471047
llvm::dyn_cast_or_null<swift::reflection::RecordTypeInfo>(ti)) {
10481048
switch (rti->getRecordKind()) {
1049+
case swift::reflection::RecordKind::ExistentialMetatype:
10491050
case swift::reflection::RecordKind::ThickFunction:
10501051
// There are two fields, `function` and `context`, but they're not exposed
10511052
// by lldb.
@@ -1181,6 +1182,7 @@ llvm::Optional<size_t> SwiftLanguageRuntimeImpl::GetIndexOfChildMemberWithName(
11811182
// Structs and Tuples.
11821183
auto *rti = llvm::cast<RecordTypeInfo>(ti);
11831184
switch (rti->getRecordKind()) {
1185+
case RecordKind::ExistentialMetatype:
11841186
case RecordKind::ThickFunction:
11851187
// There are two fields, `function` and `context`, but they're not exposed
11861188
// by lldb.

0 commit comments

Comments
 (0)