[llvm] r373100 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 09:56:07 PDT 2019
Author: rksimon
Date: Fri Sep 27 09:56:07 2019
New Revision: 373100
URL: http://llvm.org/viewvc/llvm-project?rev=373100&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/SnippetRepetitor.cpp?rev=373100&r1=373099&r2=373100&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/SnippetRepetitor.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/SnippetRepetitor.cpp Fri Sep 27 09:56:07 2019
@@ -110,6 +110,7 @@ SnippetRepetitor::Create(InstructionBenc
case InstructionBenchmark::Loop:
return std::make_unique<LoopSnippetRepetitor>(State);
}
+ llvm_unreachable("Unknown RepetitionModeE enum");
}
} // namespace exegesis
More information about the llvm-commits
mailing list