Skip to content

Commit 0cb3e3d

Browse files
authored
[5.3][RemoteMirror] Gracefully handle a NULL TypeInfo passed to convertChild. (#32597)
rdar://problem/64066210
1 parent 5053380 commit 0cb3e3d

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
@@ -393,6 +393,9 @@ static swift_typeinfo_t convertTypeInfo(const TypeInfo *TI) {
393393
}
394394

395395
static swift_childinfo_t convertChild(const TypeInfo *TI, unsigned Index) {
396+
if (!TI)
397+
return {};
398+
396399
const FieldInfo *FieldInfo;
397400
if (auto *EnumTI = dyn_cast<EnumTypeInfo>(TI)) {
398401
FieldInfo = &(EnumTI->getCases()[Index]);

0 commit comments

Comments
 (0)