From 0b48042a653b20fa30a9aa0b9642c08d573801ce Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 4 Aug 2017 04:08:23 +0000 Subject: 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 --- clang/lib/CodeGen/CoverageMappingGen.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'clang/lib') 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); -- cgit v1.2.3