Skip to content

Commit ed8aa96

Browse files
authored
[IRGen] Emit type layout string for enums with generic context when they are fixed size (#63969)
rdar://106033865 As long as the enum itself is fixed size, a layout string can be generated for it. The surrounding context can be generic, but the enum may not contain any generics.
1 parent a0272e1 commit ed8aa96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/TypeLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,7 @@ bool EnumTypeLayoutEntry::refCountString(IRGenModule &IGM,
22322232
case CopyDestroyStrategy::ForwardToPayload:
22332233
return cases[0]->refCountString(IGM, B, genericSig);
22342234
case CopyDestroyStrategy::Normal: {
2235-
if (genericSig || !isFixedSize(IGM)) {
2235+
if (!isFixedSize(IGM)) {
22362236
// B.addResilientRefCount(accessor);
22372237
return false;
22382238
}

0 commit comments

Comments
 (0)