From bf06d6dbbf0e6c4ce17f5e3aaac69ca033e65afb Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 28 Jun 2016 21:02:41 +0000 Subject: [PATCH] Fix "not all control paths return a value" warning on MSVC llvm-svn: 274065 --- tools/llvm-cov/SourceCoverageView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/llvm-cov/SourceCoverageView.cpp b/tools/llvm-cov/SourceCoverageView.cpp index 6b7f50ffc7e..ca2203d21cc 100644 --- a/tools/llvm-cov/SourceCoverageView.cpp +++ b/tools/llvm-cov/SourceCoverageView.cpp @@ -70,6 +70,7 @@ CoveragePrinter::create(const CoverageViewOptions &Opts) { case CoverageViewOptions::OutputFormat::Text: return llvm::make_unique(Opts); } + llvm_unreachable("Unknown coverage output format!"); } std::string SourceCoverageView::formatCount(uint64_t N) {