Skip to content

Commit c42c8d2

Browse files
committed
[RemoteMirror] Gracefully handle a NULL TypeInfo passed to convertChild.
rdar://problem/64066210
1 parent 9855496 commit c42c8d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ static swift_typeinfo_t convertTypeInfo(const TypeInfo *TI) {
406406
}
407407

408408
static swift_childinfo_t convertChild(const TypeInfo *TI, unsigned Index) {
409+
if (!TI)
410+
return {};
411+
409412
const FieldInfo *FieldInfo;
410413
if (auto *EnumTI = dyn_cast<EnumTypeInfo>(TI)) {
411414
FieldInfo = &(EnumTI->getCases()[Index]);

0 commit comments

Comments
 (0)