[llvm] aac1a41 - [llvm-exegesis] Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 06:04:42 PST 2024
Author: Simon Pilgrim
Date: 2024-01-19T14:04:09Z
New Revision: aac1a41c11b4e727df07a6119cddebdc783212c7
URL: https://github.com/llvm/llvm-project/commit/aac1a41c11b4e727df07a6119cddebdc783212c7
DIFF: https://github.com/llvm/llvm-project/commit/aac1a41c11b4e727df07a6119cddebdc783212c7.diff
LOG: [llvm-exegesis] Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index 60264ca87a988e8..969d9c163f8ab76 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -198,6 +198,7 @@ const char *validationEventToString(exegesis::ValidationEvent VE) {
case exegesis::ValidationEvent::InstructionRetired:
return "instructions-retired";
}
+ llvm_unreachable("Unhandled exegesis::ValidationEvent enum");
}
Expected<exegesis::ValidationEvent> stringToValidationEvent(StringRef Input) {
More information about the llvm-commits
mailing list