Skip to content

Commit 644ca8c

Browse files
committed
---
yaml --- r: 346105 b: refs/heads/master c: dc3b5d8 h: refs/heads/master i: 346103: fdceacc
1 parent a6a2c85 commit 644ca8c

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9631c2aac1b4c915a268eaa57e48e2681b6f74cf
2+
refs/heads/master: dc3b5d807e421d468184ae07a630f8598749ba54
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/include/swift/AST/Decl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5631,10 +5631,6 @@ class FuncDecl : public AbstractFunctionDecl {
56315631
return getSelfAccessKind() == SelfAccessKind::__Consuming;
56325632
}
56335633

5634-
TypeLoc getReturnTypeLoc() const {
5635-
return FnRetType;
5636-
}
5637-
56385634
SelfAccessKind getSelfAccessKind() const {
56395635
return static_cast<SelfAccessKind>(Bits.FuncDecl.SelfAccess);
56405636
}

trunk/lib/IDE/SyntaxModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ bool ModelASTWalker::walkToDeclPre(Decl *D) {
749749
AFD->getSignatureSourceRange());
750750
if (FD) {
751751
SN.TypeRange = charSourceRangeFromSourceRange(SM,
752-
FD->getReturnTypeLoc().getSourceRange());
752+
FD->getBodyResultTypeLoc().getSourceRange());
753753
}
754754
pushStructureNode(SN, AFD);
755755
} else if (auto *NTD = dyn_cast<NominalTypeDecl>(D)) {

trunk/lib/Sema/TypeCheckProtocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4940,7 +4940,7 @@ diagnoseMissingAppendInterpolationMethod(TypeChecker &tc,
49404940
break;
49414941

49424942
case InvalidMethod::Reason::ReturnType:
4943-
tc.diagnose(invalidMethod.method->getReturnTypeLoc().getLoc(),
4943+
tc.diagnose(invalidMethod.method->getBodyResultTypeLoc().getLoc(),
49444944
diag::append_interpolation_void_or_discardable)
49454945
.fixItInsert(invalidMethod.method->getStartLoc(),
49464946
"@discardableResult ");

0 commit comments

Comments
 (0)