mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge branch 'master' into master-next
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "swift/AST/ForeignErrorConvention.h"
|
||||
#include "swift/AST/GenericEnvironment.h"
|
||||
#include "swift/AST/Initializer.h"
|
||||
#include "swift/AST/LazyResolver.h"
|
||||
#include "swift/AST/LinkLibrary.h"
|
||||
#include "swift/AST/ParameterList.h"
|
||||
#include "swift/AST/Pattern.h"
|
||||
@@ -3499,6 +3500,17 @@ public:
|
||||
}
|
||||
|
||||
void visitAccessorDecl(const AccessorDecl *fn) {
|
||||
// Accessor synthesis and type checking is now sufficiently lazy that
|
||||
// we might have unvalidated accessors in a primary file.
|
||||
//
|
||||
// FIXME: Once accessor synthesis and getInterfaceType() itself are
|
||||
// request-ified this goes away.
|
||||
if (!fn->hasValidSignature()) {
|
||||
assert(fn->isImplicit());
|
||||
S.M->getASTContext().getLazyResolver()->resolveDeclSignature(
|
||||
const_cast<AccessorDecl *>(fn));
|
||||
}
|
||||
|
||||
using namespace decls_block;
|
||||
verifyAttrSerializable(fn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user