mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Validate addressors when an AbstractStorageDecl is validated
Previously we were relying on the 'validate for layout' path validating these, but that's going to change.
This commit is contained in:
@@ -776,7 +776,7 @@ static void addTrivialAccessorsToStorage(AbstractStorageDecl *storage,
|
||||
if (isDynamic)
|
||||
setter->getAttrs().add(new (TC.Context) DynamicAttr(IsImplicit));
|
||||
|
||||
// Synthesize and type-check the body of the setter.
|
||||
// Synthesize the body of the setter.
|
||||
synthesizeTrivialSetter(setter, storage, setterValueParam, TC);
|
||||
}
|
||||
|
||||
@@ -800,7 +800,7 @@ synthesizeSetterForMutableAddressedStorage(AbstractStorageDecl *storage,
|
||||
assert(storage->getStorageKind() ==
|
||||
AbstractStorageDecl::ComputedWithMutableAddress);
|
||||
|
||||
// Synthesize and type-check the body of the setter.
|
||||
// Synthesize the body of the setter.
|
||||
VarDecl *valueParamDecl = getFirstParamDecl(setter);
|
||||
synthesizeTrivialSetter(setter, storage, valueParamDecl, TC);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user