mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Profiler] Assign counter to IfStmt condition
Push a region to cover any expressions within an IfStmt condition. rdar://67280997
This commit is contained in:
@@ -70,6 +70,7 @@ func goo(_ b: Bool) -> Int { // CHECK-NEXT: [[@LINE]]:28 {{.*}} : 0
|
||||
do { // CHECK-NEXT: [[@LINE]]:6 -> [[@LINE+2]]:4 : 0
|
||||
throw SomeErr.Err1
|
||||
} catch { // CHECK-NEXT: [[@LINE]]:11 {{.*}} : 1
|
||||
// CHECK-NEXT: [[@LINE+1]]:8 {{.*}} : 1
|
||||
if b { // CHECK-NEXT: [[@LINE]]:10 {{.*}} : 2
|
||||
return 1
|
||||
} // CHECK-NEXT: [[@LINE]]:6 {{.*}} : (1 - 2)
|
||||
|
||||
Reference in New Issue
Block a user