Skip to content

Commit 79f7869

Browse files
committed
add EnumTypeInfo handling in GetNumChildren
1 parent b82ad6d commit 79f7869

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Target/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,9 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
10151015
auto fields = rti->getFields();
10161016
return fields.size();
10171017
}
1018+
if (auto *eti = llvm::dyn_cast_or_null<swift::reflection::EnumTypeInfo>(ti)) {
1019+
return eti->getNumPayloadCases();
1020+
}
10181021
// FIXME: Implement more cases.
10191022
return {};
10201023
}

0 commit comments

Comments
 (0)