Skip to content

Commit 0d5d9e2

Browse files
committed
in GetChildCompilerTypeAtIndex, switch fallback() to impl()
Now that `TypeSystemSwiftTypeRef::GetNumChildren` is implemented, if the runtime knows of more children than the AST contains, then the runtime should be used (`impl`), not the AST (`fallback`).
1 parent d0a8d14 commit 0d5d9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ CompilerType TypeSystemSwiftTypeRef::GetChildCompilerTypeAtIndex(
23452345
if (m_swift_ast_context->GetNumChildren(ReconstructType(type),
23462346
omit_empty_base_classes, exe_ctx) <
23472347
runtime->GetNumChildren({this, type}, valobj).getValueOr(0))
2348-
return fallback();
2348+
return impl();
23492349

23502350
#ifndef NDEBUG
23512351
std::string ast_child_name;

0 commit comments

Comments
 (0)