Skip to content

Commit 99bf4dd

Browse files
committed
IRGen: Add an assertion in enum lowering
1 parent 014f6f3 commit 99bf4dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenEnum.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5145,7 +5145,7 @@ EnumImplStrategy::get(TypeConverter &TC, SILType type, EnumDecl *theEnum) {
51455145
// can reproduce.
51465146
if (!substArgTI->isFixedSize(layoutScope)) {
51475147
alwaysFixedSize = IsNotFixedSize;
5148-
allowFixedLayoutOptimizations = false;
5148+
assert(!allowFixedLayoutOptimizations);
51495149
}
51505150
}
51515151
}

0 commit comments

Comments
 (0)