summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CoverageMappingGen.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-08-04 04:08:23 +0000
committerVedant Kumar <vsk@apple.com>2017-08-04 04:08:23 +0000
commit0b48042a653b20fa30a9aa0b9642c08d573801ce (patch)
tree896388ba96e36b2c377ae9b151f2353124bde4be /clang/lib/CodeGen/CoverageMappingGen.cpp
parent10fbc733d09d4ac2f159f78c4a31c0ab8e394c50 (diff)
downloadbcm5719-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/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r--clang/lib/CodeGen/CoverageMappingGen.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index 27d98dc60d7..07d16186b66 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -797,18 +797,6 @@ struct CounterCoverageMappingBuilder
terminateRegion(S);
}
- void VisitCallExpr(const CallExpr *E) {
- extendRegion(E);
- for (const Stmt *Child : E->children())
- this->Visit(Child);
-
- // Terminate the region when we hit a noreturn function.
- // (This is helpful dealing with switch statements.)
- QualType CalleeType = E->getCallee()->getType();
- if (getFunctionExtInfo(*CalleeType).getNoReturn())
- terminateRegion(E);
- }
-
void VisitWhileStmt(const WhileStmt *S) {
extendRegion(S);
OpenPOWER on IntegriCloud