[llvm] 3f5fcb5 - Fix MSVC "not all control paths return a value" warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 03:04:53 PST 2024


Author: Simon Pilgrim
Date: 2024-01-31T11:04:20Z
New Revision: 3f5fcb59ae582ebfbe3f23050d90f86a2cb76eb0

URL: https://github.com/llvm/llvm-project/commit/3f5fcb59ae582ebfbe3f23050d90f86a2cb76eb0
DIFF: https://github.com/llvm/llvm-project/commit/3f5fcb59ae582ebfbe3f23050d90f86a2cb76eb0.diff

LOG: Fix MSVC "not all control paths return a value" warning. NFC.

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp b/llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp
index 49403aed90ab7..e86e206cca38b 100644
--- a/llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp
+++ b/llvm/tools/llvm-exegesis/lib/ResultAggregator.cpp
@@ -89,6 +89,7 @@ ResultAggregator::CreateAggregator(Benchmark::RepetitionModeE RepetitionMode) {
   case Benchmark::RepetitionModeE::MiddleHalfLoop:
     return std::make_unique<MiddleHalfResultAggregator>();
   }
+  llvm_unreachable("Unknown Benchmark::RepetitionModeE enum");
 }
 
 } // namespace exegesis


        


More information about the llvm-commits mailing list