mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Coverage] Fix mappings of regions following do-catch stmts
Coverage reporting for source regions following do-catch statements was incorrect, because it did not properly reflect early exits. rdar://34244637
This commit is contained in:
@@ -120,8 +120,6 @@ func goo() {
|
||||
}
|
||||
} while false // CHECK-DAG: [[@LINE]]:13 -> [[@LINE]]:18 : ([[RWS9]] - [[RET1]])
|
||||
} while false // CHECK-DAG: [[@LINE]]:11 -> [[@LINE]]:16 : ([[RWS8]] - [[RET1]])
|
||||
|
||||
// TODO(vsk): need tests for fail and throw statements.
|
||||
}
|
||||
|
||||
eoo()
|
||||
|
||||
Reference in New Issue
Block a user