File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,9 @@ func test8(_ b: Bool) -> Int { // CHECK-NEXT: [[@LINE]]:30 {{.*}} : 0
241241 if b { // CHECK-NEXT: [[@LINE]]:10 {{.*}} : 2
242242 return 1
243243 } // CHECK-NEXT: [[@LINE]]:6 {{.*}} : (1 - 2)
244- } // CHECK: [[@LINE]]:4 {{.*}} : (1 - 2)
244+ } // CHECK-NEXT : [[@LINE]]:4 {{.*}} : (1 - 2)
245245 return 0
246- }
246+ } // CHECK-NEXT: }
247247
248248// Test coverage with nested do-catches
249249// CHECK-LABEL: sil_coverage_map {{.*}} "$s15coverage_errors5test9SiyF"
@@ -362,6 +362,8 @@ func test19() throws -> Int { // CHECK-NEXT: [[@LINE]]:29 -> [[@LINE+
362362 return x // CHECK-NEXT: [[@LINE-1]]:41 -> [[@LINE]]:11 : ((0 - 1) - 2)
363363} // CHECK-NEXT: }
364364
365+ // TODO: We probably ought to include the function call in the non-throwing
366+ // regions here (rdar://118524386).
365367// CHECK-LABEL: sil_coverage_map {{.*}} "$s15coverage_errors6test20yyKF"
366368func test20( ) throws { // CHECK-NEXT: [[@LINE]]:22 -> [[@LINE+5]]:2 : 0
367369 takesInts (
You can’t perform that action at this time.
0 commit comments