We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e85347 + c42c8d2 commit 62ebcaeCopy full SHA for 62ebcae
stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp
@@ -406,6 +406,9 @@ static swift_typeinfo_t convertTypeInfo(const TypeInfo *TI) {
406
}
407
408
static swift_childinfo_t convertChild(const TypeInfo *TI, unsigned Index) {
409
+ if (!TI)
410
+ return {};
411
+
412
const FieldInfo *FieldInfo;
413
if (auto *EnumTI = dyn_cast<EnumTypeInfo>(TI)) {
414
FieldInfo = &(EnumTI->getCases()[Index]);
0 commit comments