From da83b869ab06dd177a08cad7b0d98f42aa4bb941 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 27 Jan 2021 10:14:54 +0000 Subject: [PATCH] Fix "not all control paths return a value" warning. NFCI. --- clang/lib/Basic/ProfileList.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Basic/ProfileList.cpp b/clang/lib/Basic/ProfileList.cpp index 56bc37a..2cb05c1 100644 --- a/clang/lib/Basic/ProfileList.cpp +++ b/clang/lib/Basic/ProfileList.cpp @@ -82,6 +82,7 @@ static StringRef getSectionName(CodeGenOptions::ProfileInstrKind Kind) { case CodeGenOptions::ProfileCSIRInstr: return "csllvm"; } + llvm_unreachable("Unhandled CodeGenOptions::ProfileInstrKind enum"); } llvm::Optional -- 2.7.4