diff options
author | Vedant Kumar <vsk@apple.com> | 2017-08-04 04:08:23 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-08-04 04:08:23 +0000 |
commit | 0b48042a653b20fa30a9aa0b9642c08d573801ce (patch) | |
tree | 896388ba96e36b2c377ae9b151f2353124bde4be /clang/test/CoverageMapping/switch.cpp | |
parent | 10fbc733d09d4ac2f159f78c4a31c0ab8e394c50 (diff) | |
download | bcm5719-llvm-0b48042a653b20fa30a9aa0b9642c08d573801ce.tar.gz bcm5719-llvm-0b48042a653b20fa30a9aa0b9642c08d573801ce.zip |
Revert "[coverage] Special-case calls to noreturn functions."
This reverts commit r309995. It looks like it's responsible for breaking
the stage2 coverage build:
http://green.lab.llvm.org/green/job/clang-stage2-coverage-R_build/1402
The cfe-commits discussion re: r309995 has more context.
llvm-svn: 310019
Diffstat (limited to 'clang/test/CoverageMapping/switch.cpp')
-rw-r--r-- | clang/test/CoverageMapping/switch.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/test/CoverageMapping/switch.cpp b/clang/test/CoverageMapping/switch.cpp index d347e663d10..8b0cf7c2fb8 100644 --- a/clang/test/CoverageMapping/switch.cpp +++ b/clang/test/CoverageMapping/switch.cpp @@ -97,16 +97,3 @@ int fallthrough(int i) { // CHECK-NEXT: File 0, [[@LINE]]:24 -> [[@LINE+12]]:2 = break; } } - -void abort(void) __attribute((noreturn)); - // CHECK: noret -int noret(int x) { // CHECK-NEXT: File 0, [[@LINE]]:18 -> [[@LINE+9]]:2 - switch (x) { - default: // CHECK-NEXT: File 0, [[@LINE]]:3 -> [[@LINE+1]]:12 - abort(); - case 1: // CHECK-NEXT: File 0, [[@LINE]]:3 -> [[@LINE+1]]:13 - return 5; - case 2: // CHECK-NEXT: File 0, [[@LINE]]:3 -> [[@LINE+1]]:14 - return 10; - } -} |