Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2017-07-05 15:28:50 -07:00
18 changed files with 54 additions and 76 deletions

View File

@@ -4197,7 +4197,7 @@ Type DeclContext::getSelfInterfaceType() const {
/// generic parameters.
ParamDecl *ParamDecl::createUnboundSelf(SourceLoc loc, DeclContext *DC) {
ASTContext &C = DC->getASTContext();
auto *selfDecl = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(), SourceLoc(),
auto *selfDecl = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(), SourceLoc(),
Identifier(), loc, C.Id_self, Type(), DC);
selfDecl->setImplicit();
return selfDecl;
@@ -4217,7 +4217,7 @@ ParamDecl *ParamDecl::createSelf(SourceLoc loc, DeclContext *DC,
ASTContext &C = DC->getASTContext();
auto selfType = DC->getSelfTypeInContext();
auto selfInterfaceType = DC->getSelfInterfaceType();
auto specifier = VarDecl::Specifier::None;
auto specifier = VarDecl::Specifier::Owned;
assert(selfType && selfInterfaceType);
if (isStaticMethod) {