Fix "not all control paths return a value" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 Jan 2021 10:14:54 +0000 (10:14 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 Jan 2021 10:15:21 +0000 (10:15 +0000)
clang/lib/Basic/ProfileList.cpp

index 56bc37a..2cb05c1 100644 (file)
@@ -82,6 +82,7 @@ static StringRef getSectionName(CodeGenOptions::ProfileInstrKind Kind) {
   case CodeGenOptions::ProfileCSIRInstr:
     return "csllvm";
   }
+  llvm_unreachable("Unhandled CodeGenOptions::ProfileInstrKind enum");
 }
 
 llvm::Optional<bool>