Skip to content

Commit 2b52670

Browse files
committed
Reformat. NFC.
1 parent 6f4c5c4 commit 2b52670

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/IRGen/GenEnum.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5794,13 +5794,14 @@ std::unique_ptr<EnumImplStrategy>
57945794
EnumImplStrategy::get(TypeConverter &TC, SILType type, EnumDecl *theEnum) {
57955795
unsigned numElements = 0;
57965796
TypeInfoKind tik = Loadable;
5797-
IsFixedSize_t alwaysFixedSize =
5798-
TC.IGM.isResilient(theEnum, ResilienceExpansion::Minimal) ? IsNotFixedSize
5799-
: IsFixedSize;
5797+
IsFixedSize_t alwaysFixedSize = IsFixedSize;
58005798
bool allowFixedLayoutOptimizations = true;
58015799
std::vector<Element> elementsWithPayload;
58025800
std::vector<Element> elementsWithNoPayload;
58035801

5802+
if (TC.IGM.isResilient(theEnum, ResilienceExpansion::Minimal))
5803+
alwaysFixedSize = IsNotFixedSize;
5804+
58045805
// Resilient enums are manipulated as opaque values, except we still
58055806
// make the following assumptions:
58065807
// 1) The indirect-ness of cases won't change

0 commit comments

Comments
 (0)