]> granicus.if.org Git - llvm/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373100 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-exegesis/lib/SnippetRepetitor.cpp

index 551ee5341a07dc751273374b0662fc5015079e78..954471659e5931f1e891b5986d8e0f4e4a4a0e90 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