[llvm-branch-commits] [clang] b46924e - Fix "not all control paths return a value" warning. NFCI.

Aaron Puchert via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 9 15:29:03 PST 2021


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>


        


More information about the llvm-branch-commits mailing list