@@ -131,12 +131,12 @@ bool lldb_private::formatters::swift::IndexPath_SummaryProvider(
131
131
stream.PutCString (" 2 indices" );
132
132
else if (value == g_array)
133
133
{
134
- if (underlying_enum_sp->GetNumChildren () != 1 )
134
+ if (underlying_enum_sp->GetNumChildrenIgnoringErrors () != 1 )
135
135
return false ;
136
136
137
137
underlying_enum_sp = underlying_enum_sp->GetChildAtIndex (0 , true )
138
138
->GetQualifiedRepresentationIfAvailable (lldb::eDynamicDontRunTarget, true );
139
- size_t num_children = underlying_enum_sp->GetNumChildren ();
139
+ size_t num_children = underlying_enum_sp->GetNumChildrenIgnoringErrors ();
140
140
stream.Printf (" %zu indices" , num_children);
141
141
}
142
142
return true ;
@@ -214,7 +214,7 @@ bool lldb_private::formatters::swift::UUID_SummaryProvider(
214
214
if (!uuid_sp)
215
215
return false ;
216
216
217
- if (uuid_sp->GetNumChildren () < 16 )
217
+ if (uuid_sp->GetNumChildrenIgnoringErrors () < 16 )
218
218
return false ;
219
219
220
220
ValueObjectSP children[] = {
@@ -300,7 +300,7 @@ bool lldb_private::formatters::swift::Data_SummaryProvider(
300
300
// Do nothing; count is already 0.
301
301
} else if (representation_case == g_inline) {
302
302
// Grab the associated value from `case inline(InlineData)`.
303
- if (representation_enum_sp->GetNumChildren () != 1 )
303
+ if (representation_enum_sp->GetNumChildrenIgnoringErrors () != 1 )
304
304
return false ;
305
305
306
306
ValueObjectSP inline_data_sp =
@@ -330,7 +330,7 @@ bool lldb_private::formatters::swift::Data_SummaryProvider(
330
330
}
331
331
} else if (representation_case == g_slice) {
332
332
// Grab the associated value from `case slice(InlineSlice)`.
333
- if (representation_enum_sp->GetNumChildren () != 1 )
333
+ if (representation_enum_sp->GetNumChildrenIgnoringErrors () != 1 )
334
334
return false ;
335
335
336
336
ValueObjectSP slice_data_sp =
@@ -392,7 +392,7 @@ bool lldb_private::formatters::swift::Data_SummaryProvider(
392
392
count = upperBound - lowerBound;
393
393
} else if (representation_case == g_large) {
394
394
// Grab the associated value from `case large(LargeSlice)`.
395
- if (representation_enum_sp->GetNumChildren () != 1 )
395
+ if (representation_enum_sp->GetNumChildrenIgnoringErrors () != 1 )
396
396
return false ;
397
397
398
398
ValueObjectSP large_data_sp =
@@ -521,7 +521,7 @@ bool lldb_private::formatters::swift::Decimal_SummaryProvider(
521
521
522
522
// Mantissa is represented as a tuple of 8 UInt16.
523
523
const uint8_t num_children = 8 ;
524
- if (mantissa_sp->GetNumChildren () != num_children)
524
+ if (mantissa_sp->GetNumChildrenIgnoringErrors () != num_children)
525
525
return false ;
526
526
527
527
std::vector<double > mantissa_elements;
@@ -570,13 +570,13 @@ class URLComponentsSyntheticChildrenFrontEnd
570
570
571
571
~URLComponentsSyntheticChildrenFrontEnd () override = default ;
572
572
573
- size_t CalculateNumChildren () override {
573
+ llvm::Expected< uint32_t > CalculateNumChildren () override {
574
574
if (IsValid ())
575
575
return 9 ;
576
576
return 0 ;
577
577
}
578
578
579
- lldb::ValueObjectSP GetChildAtIndex (size_t idx) override {
579
+ lldb::ValueObjectSP GetChildAtIndex (uint32_t idx) override {
580
580
if (IsValid ()) {
581
581
switch (idx) {
582
582
#define COMPONENT (Name, PrettyName, ID ) \
0 commit comments