Fix MSVC "not all control paths return a value" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Sep 2019 16:56:07 +0000 (16:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 27 Sep 2019 16:56:07 +0000 (16:56 +0000)
llvm-svn: 373100

llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp

index 551ee53..9544716 100644 (file)
@@ -110,6 +110,7 @@ SnippetRepetitor::Create(InstructionBenchmark::RepetitionModeE Mode,
   case InstructionBenchmark::Loop:
     return std::make_unique<LoopSnippetRepetitor>(State);
   }
+  llvm_unreachable("Unknown RepetitionModeE enum");
 }
 
 } // namespace exegesis