Author: Simon Pilgrim Date: 2021-02-10T00:28:41+01:00 New Revision: b46924ee5afe234526220c29a497794bf65f8f7f
URL: https://github.com/llvm/llvm-project/commit/b46924ee5afe234526220c29a497794bf65f8f7f DIFF: https://github.com/llvm/llvm-project/commit/b46924ee5afe234526220c29a497794bf65f8f7f.diff LOG: Fix "not all control paths return a value" warning. NFCI. Added: Modified: clang/lib/Basic/ProfileList.cpp Removed: ################################################################################ diff --git a/clang/lib/Basic/ProfileList.cpp b/clang/lib/Basic/ProfileList.cpp index 56bc37a79301..2cb05c1c3c07 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<bool> _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits