File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5794,13 +5794,14 @@ std::unique_ptr<EnumImplStrategy>
5794
5794
EnumImplStrategy::get (TypeConverter &TC, SILType type, EnumDecl *theEnum) {
5795
5795
unsigned numElements = 0 ;
5796
5796
TypeInfoKind tik = Loadable;
5797
- IsFixedSize_t alwaysFixedSize =
5798
- TC.IGM .isResilient (theEnum, ResilienceExpansion::Minimal) ? IsNotFixedSize
5799
- : IsFixedSize;
5797
+ IsFixedSize_t alwaysFixedSize = IsFixedSize;
5800
5798
bool allowFixedLayoutOptimizations = true ;
5801
5799
std::vector<Element> elementsWithPayload;
5802
5800
std::vector<Element> elementsWithNoPayload;
5803
5801
5802
+ if (TC.IGM .isResilient (theEnum, ResilienceExpansion::Minimal))
5803
+ alwaysFixedSize = IsNotFixedSize;
5804
+
5804
5805
// Resilient enums are manipulated as opaque values, except we still
5805
5806
// make the following assumptions:
5806
5807
// 1) The indirect-ness of cases won't change
You can’t perform that action at this time.
0 commit comments