From: Simon Pilgrim Date: Fri, 27 Sep 2019 16:56:07 +0000 (+0000) Subject: Fix MSVC "not all control paths return a value" warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67f86e70ac73c04fa72fa9a3cb36d3b7415921d7;p=llvm Fix MSVC "not all control paths return a value" warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373100 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-exegesis/lib/SnippetRepetitor.cpp b/tools/llvm-exegesis/lib/SnippetRepetitor.cpp index 551ee5341a0..954471659e5 100644 --- a/tools/llvm-exegesis/lib/SnippetRepetitor.cpp +++ b/tools/llvm-exegesis/lib/SnippetRepetitor.cpp @@ -110,6 +110,7 @@ SnippetRepetitor::Create(InstructionBenchmark::RepetitionModeE Mode, case InstructionBenchmark::Loop: return std::make_unique(State); } + llvm_unreachable("Unknown RepetitionModeE enum"); } } // namespace exegesis