@@ -28,7 +28,7 @@ public var global = Klass() // expected-remark {{heap allocated ref of type 'Kla
2828// CHECK-NEXT: Pass: sil-assembly-vision-remark-gen
2929// CHECK-NEXT: Name: sil.memory
3030// CHECK-NEXT: DebugLoc: { File: '{{.*}}basic_yaml.swift',
31- // CHECK-NEXT: Line: [[# @LINE + 27 ]], Column: 12 }
31+ // CHECK-NEXT: Line: [[# @LINE + 42 ]], Column: 12 }
3232// CHECK-NEXT: Function: 'getGlobal()'
3333// CHECK-NEXT: Args:
3434// CHECK-NEXT: - String: 'begin exclusive access to value of type '''
@@ -42,6 +42,21 @@ public var global = Klass() // expected-remark {{heap allocated ref of type 'Kla
4242// CHECK: --- !Missed
4343// CHECK-NEXT: Pass: sil-assembly-vision-remark-gen
4444// CHECK-NEXT: Name: sil.memory
45+ // CHECK-NEXT: DebugLoc: { File: '{{.*}}basic_yaml.swift',
46+ // CHECK-NEXT: Line: [[# @LINE + 27 ]], Column: 12 }
47+ // CHECK-NEXT: Function: 'getGlobal()'
48+ // CHECK-NEXT: Args:
49+ // CHECK-NEXT: - String: 'end exclusive access to value of type '''
50+ // CHECK-NEXT: - ValueType: Klass
51+ // CHECK-NEXT: - String: ''''
52+ // CHECK-NEXT: - InferredValue: 'of ''global'''
53+ // CHECK-NEXT: DebugLoc: { File: '{{.*}}basic_yaml.swift',
54+ // CHECK-NEXT: Line: [[# @LINE - 29 ]], Column: 12 }
55+ // CHECK-NEXT: ...
56+ //
57+ // CHECK: --- !Missed
58+ // CHECK-NEXT: Pass: sil-assembly-vision-remark-gen
59+ // CHECK-NEXT: Name: sil.memory
4560// CHECK-NEXT: DebugLoc: { File: '{{.*}}basic_yaml.swift',
4661// CHECK-NEXT: Line: [[# @LINE + 12]], Column: 5 }
4762// CHECK-NEXT: Function: 'getGlobal()'
@@ -51,14 +66,17 @@ public var global = Klass() // expected-remark {{heap allocated ref of type 'Kla
5166// CHECK-NEXT: - String: ''''
5267// CHECK-NEXT: - InferredValue: 'of ''global'''
5368// CHECK-NEXT: DebugLoc: { File: '{{.*}}basic_yaml.swift',
54- // CHECK-NEXT: Line: [[# @LINE - 29 ]], Column: 12 }
69+ // CHECK-NEXT: Line: [[# @LINE - 44 ]], Column: 12 }
5570// CHECK-NEXT: ...
5671@inline ( never)
5772public func getGlobal( ) -> Klass {
5873 return global // expected-remark @:5 {{retain of type 'Klass'}}
59- // expected-note @-34 :12 {{of 'global'}}
74+ // expected-note @-49 :12 {{of 'global'}}
6075 // expected-remark @-2 {{begin exclusive access to value of type 'Klass'}}
61- // expected-note @-36:12 {{of 'global'}}
76+ // expected-note @-51:12 {{of 'global'}}
77+ // NOTE: We really want the end access at :18, not :12. TODO Fix this!
78+ // expected-remark @-5 {{end exclusive access to value of type 'Klass'}}
79+ // expected-note @-54:12 {{of 'global'}}
6280}
6381
6482// CHECK: --- !Missed
0 commit comments