Skip to content

Commit 0ff7f1d

Browse files
committed
[IRGen] Don't generate layout strings for moveonly types
1 parent fd967fd commit 0ff7f1d

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
@@ -1741,7 +1741,7 @@ AlignedGroupEntry::layoutString(IRGenModule &IGM,
17411741

17421742
bool AlignedGroupEntry::refCountString(IRGenModule &IGM, LayoutStringBuilder &B,
17431743
GenericSignature genericSig) const {
1744-
if (!isFixedSize(IGM)) {
1744+
if (!isFixedSize(IGM) || ty.isMoveOnly()) {
17451745
return false;
17461746
}
17471747

0 commit comments

Comments
 (0)