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.
1 parent 283c656 commit 7c7ad18Copy full SHA for 7c7ad18
include/swift/RemoteInspection/TypeLowering.h
@@ -243,8 +243,11 @@ class EnumTypeInfo : public TypeInfo {
243
auto Cases = getCases();
244
return std::count_if(Cases.begin(), Cases.end(),
245
[](const FieldInfo &Case){
246
+ // For our purposes here, assume any case
247
+ // with invalid (missing) typeinfo is non-empty
248
return Case.TR != 0
- && Case.TI.getSize() != 0;
249
+ && (Case.TI.getKind() == TypeInfoKind::Invalid
250
+ || Case.TI.getSize() > 0);
251
});
252
}
253
// Size of the payload area.
0 commit comments