[llvm] b2a885d - [ProfileData] Fix Clang -Wcovered-switch-default after D109398
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 7 20:58:57 PDT 2021
Author: Fangrui Song
Date: 2021-09-07T20:58:51-07:00
New Revision: b2a885df0d30b11973864dcd3ddeaff8bd1ddef5
URL: https://github.com/llvm/llvm-project/commit/b2a885df0d30b11973864dcd3ddeaff8bd1ddef5
DIFF: https://github.com/llvm/llvm-project/commit/b2a885df0d30b11973864dcd3ddeaff8bd1ddef5.diff
LOG: [ProfileData] Fix Clang -Wcovered-switch-default after D109398
Added:
Modified:
llvm/include/llvm/ProfileData/SampleProf.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/SampleProf.h b/llvm/include/llvm/ProfileData/SampleProf.h
index 124e07a930711..26b4e54ffc3ad 100644
--- a/llvm/include/llvm/ProfileData/SampleProf.h
+++ b/llvm/include/llvm/ProfileData/SampleProf.h
@@ -149,9 +149,8 @@ static inline std::string getSecName(SecType Type) {
return "CSNameTableSection";
case SecLBRProfile:
return "LBRProfileSection";
- default:
- return "UnknownSection";
}
+ llvm_unreachable("");
}
// Entry type of section header table used by SampleProfileExtBinaryBaseReader
More information about the llvm-commits
mailing list