diff options
author | Vedant Kumar <vsk@apple.com> | 2017-09-19 00:29:46 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-09-19 00:29:46 +0000 |
commit | b3bac44cb354b63214b16fab24b5c0ffd392ec02 (patch) | |
tree | 4f42e5defa7bb2d882cb64140bfecf88905c3586 /test/CoverageMapping | |
parent | 00354796372407a06f532df2f45cc94e58f06386 (diff) |
[Coverage] Remove deferred region for trailing return, fixes PR34611
As a special case, throw away deferred regions for trailing returns.
This allows the closing curly brace to have a count, and is less
distracting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CoverageMapping')
-rw-r--r-- | test/CoverageMapping/deferred-region.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CoverageMapping/deferred-region.cpp b/test/CoverageMapping/deferred-region.cpp index 41b5e6be8c..743b635a90 100644 --- a/test/CoverageMapping/deferred-region.cpp +++ b/test/CoverageMapping/deferred-region.cpp @@ -28,6 +28,14 @@ void baz() { // CHECK: [[@LINE]]:12 -> [[@LINE+2]]:2 return; // CHECK-NOT: File } +// CHECK-LABEL: _Z3mazv: +void maz() { + if (true) + return; // CHECK: Gap,File 0, [[@LINE]]:11 -> 36:3 = (#0 - #1) + + return; // CHECK-NOT: Gap +} + // CHECK-LABEL: _Z3bari: void bar(int x) { IF (x) |