@@ -393,16 +393,11 @@ class alignas(1 << DeclAlignInBits) Decl {
393393 // / Information about a symbolic default argument, like #file.
394394 defaultArgumentKind : NumDefaultArgumentKindBits
395395 );
396-
396+
397397 SWIFT_INLINE_BITFIELD (SubscriptDecl, VarDecl, 2 ,
398398 StaticSpelling : 2
399399 );
400400
401- SWIFT_INLINE_BITFIELD (EnumElementDecl, ValueDecl, 1 ,
402- // / The ResilienceExpansion to use for default arguments.
403- DefaultArgumentResilienceExpansion : 1
404- );
405-
406401 SWIFT_INLINE_BITFIELD (AbstractFunctionDecl, ValueDecl, 3 +8 +1 +1 +1 +1 +1 +1 +1 ,
407402 // / \see AbstractFunctionDecl::BodyKind
408403 BodyKind : 3 ,
@@ -425,9 +420,6 @@ class alignas(1 << DeclAlignInBits) Decl {
425420 // / Whether NeedsNewVTableEntry is valid.
426421 HasComputedNeedsNewVTableEntry : 1 ,
427422
428- // / The ResilienceExpansion to use for default arguments.
429- DefaultArgumentResilienceExpansion : 1 ,
430-
431423 // / Whether this member was synthesized as part of a derived
432424 // / protocol conformance.
433425 Synthesized : 1
@@ -5307,8 +5299,6 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
53075299 Bits.AbstractFunctionDecl .Throws = Throws;
53085300 Bits.AbstractFunctionDecl .NeedsNewVTableEntry = false ;
53095301 Bits.AbstractFunctionDecl .HasComputedNeedsNewVTableEntry = false ;
5310- Bits.AbstractFunctionDecl .DefaultArgumentResilienceExpansion =
5311- unsigned (ResilienceExpansion::Maximal);
53125302 Bits.AbstractFunctionDecl .Synthesized = false ;
53135303 }
53145304
@@ -5556,21 +5546,6 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
55565546 // / Resolved during type checking
55575547 void setIsOverridden () { Bits.AbstractFunctionDecl .Overridden = true ; }
55585548
5559- // / The ResilienceExpansion for default arguments.
5560- // /
5561- // / In Swift 4 mode, default argument expressions are serialized, and must
5562- // / obey the restrictions imposed upon inlinable function bodies.
5563- ResilienceExpansion getDefaultArgumentResilienceExpansion () const {
5564- return ResilienceExpansion (
5565- Bits.AbstractFunctionDecl .DefaultArgumentResilienceExpansion );
5566- }
5567-
5568- // / Set the ResilienceExpansion for default arguments.
5569- void setDefaultArgumentResilienceExpansion (ResilienceExpansion expansion) {
5570- Bits.AbstractFunctionDecl .DefaultArgumentResilienceExpansion =
5571- unsigned (expansion);
5572- }
5573-
55745549 // / Set information about the foreign error convention used by this
55755550 // / declaration.
55765551 void setForeignErrorConvention (const ForeignErrorConvention &convention);
@@ -6025,10 +6000,7 @@ class EnumElementDecl : public DeclContext, public ValueDecl {
60256000 Params(Params),
60266001 EqualsLoc(EqualsLoc),
60276002 RawValueExpr(RawValueExpr)
6028- {
6029- Bits.EnumElementDecl .DefaultArgumentResilienceExpansion =
6030- static_cast <unsigned >(ResilienceExpansion::Maximal);
6031- }
6003+ {}
60326004
60336005 Identifier getName () const { return getFullName ().getBaseIdentifier (); }
60346006
@@ -6057,21 +6029,6 @@ class EnumElementDecl : public DeclContext, public ValueDecl {
60576029 TypeCheckedRawValueExpr = e;
60586030 }
60596031
6060- // / The ResilienceExpansion for default arguments.
6061- // /
6062- // / In Swift 4 mode, default argument expressions are serialized, and must
6063- // / obey the restrictions imposed upon inlinable function bodies.
6064- ResilienceExpansion getDefaultArgumentResilienceExpansion () const {
6065- return ResilienceExpansion (
6066- Bits.EnumElementDecl .DefaultArgumentResilienceExpansion );
6067- }
6068-
6069- // / Set the ResilienceExpansion for default arguments.
6070- void setDefaultArgumentResilienceExpansion (ResilienceExpansion expansion) {
6071- Bits.EnumElementDecl .DefaultArgumentResilienceExpansion =
6072- unsigned (expansion);
6073- }
6074-
60756032 // / Return the containing EnumDecl.
60766033 EnumDecl *getParentEnum () const {
60776034 return cast<EnumDecl>(getDeclContext ());
0 commit comments