mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] NFC: Formalize Decl validation tracking via RAII
After this change, RAII ensures that the validation state is accurate as possible.
This commit is contained in:
@@ -373,7 +373,7 @@ deriveRawRepresentable_init(DerivedConformance &derived) {
|
||||
initDecl->setInterfaceType(allocIfaceType);
|
||||
initDecl->setInitializerInterfaceType(initIfaceType);
|
||||
initDecl->copyFormalAccessFrom(enumDecl, /*sourceIsParentContext*/true);
|
||||
initDecl->setValidationStarted();
|
||||
initDecl->setValidationToChecked();
|
||||
|
||||
// If the containing module is not resilient, make sure clients can construct
|
||||
// an instance without function call overhead.
|
||||
|
||||
Reference in New Issue
Block a user