Merge branch 'master' into master-next

This commit is contained in:
Joe Groff
2019-07-18 13:14:39 -07:00
271 changed files with 5835 additions and 3518 deletions

View File

@@ -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);