Skip to content

Commit c6ba86a

Browse files
committed
---
yaml --- r: 346750 b: refs/heads/master c: 53c6ec8 h: refs/heads/master
1 parent c54cd9e commit c6ba86a

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
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: e48650cc1270740ccb6be5be9b06a45c5cdd9565
2+
refs/heads/master: 53c6ec8b6bbc9a411f3433ee396d72ab7dff1ec9
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/lib/AST/Decl.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,9 +3383,11 @@ TypeLoc &AssociatedTypeDecl::getDefaultDefinitionLoc() {
33833383

33843384
SourceRange AssociatedTypeDecl::getSourceRange() const {
33853385
SourceLoc endLoc;
3386-
if (auto TWC = getTrailingWhereClause())
3386+
if (auto TWC = getTrailingWhereClause()) {
33873387
endLoc = TWC->getSourceRange().End;
3388-
else if (!getInherited().empty()) {
3388+
} else if (getDefaultDefinitionLoc().hasLocation()) {
3389+
endLoc = getDefaultDefinitionLoc().getSourceRange().End;
3390+
} else if (!getInherited().empty()) {
33893391
endLoc = getInherited().back().getSourceRange().End;
33903392
} else {
33913393
endLoc = getNameLoc();

trunk/test/IDE/structure.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ protocol FooProtocol {
245245
// CHECK: <associatedtype>associatedtype <name>Baz</name>: Equatable</associatedtype>
246246
associatedtype Qux where Qux: Equatable
247247
// CHECK: <associatedtype>associatedtype <name>Qux</name> where Qux: Equatable</associatedtype>
248+
associatedtype Bar2 = Int
249+
// CHECK: <associatedtype>associatedtype <name>Bar2</name> = Int</associatedtype>
250+
associatedtype Baz2: Equatable = Int
251+
// CHECK: <associatedtype>associatedtype <name>Baz2</name>: Equatable = Int</associatedtype>
252+
associatedtype Qux2 = Int where Qux2: Equatable
253+
// CHECK: <associatedtype>associatedtype <name>Qux2</name> = Int where Qux2: Equatable</associatedtype>
248254
}
249255

250256
// CHECK: <struct>struct <name>Generic</name><<generic-param><name>T</name>: <inherited><elem-typeref>Comparable</elem-typeref></inherited></generic-param>, <generic-param><name>X</name></generic-param>> {

trunk/test/SILOptimizer/licm_exclusivity.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// RUN: %target-swift-frontend -O -enforce-exclusivity=checked -emit-sil -whole-module-optimization %s | %FileCheck %s --check-prefix=TESTSIL2
66

77
// REQUIRES: optimized_stdlib,asserts
8+
// REQUIRES: PTRSIZE=64
89

910
// TEST1-LABEL: Processing loops in {{.*}}run_ReversedArray{{.*}}
1011
// TEST1: Hoist and Sink pairs attempt

0 commit comments

Comments
 (0)