[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:
Vedant Kumar
2018-05-18 12:11:07 -07:00
parent 2f5bed40da
commit d3ea09fafc
6 changed files with 136 additions and 31 deletions

View File

@@ -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()