[llvm] r373730 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 04:24:51 PDT 2019
Author: rksimon
Date: Fri Oct 4 04:24:51 2019
New Revision: 373730
URL: http://llvm.org/viewvc/llvm-project?rev=373730&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.
Modified:
llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp?rev=373730&r1=373729&r2=373730&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JITLink/JITLink.cpp Fri Oct 4 04:24:51 2019
@@ -74,6 +74,7 @@ const char *getLinkageName(Linkage L) {
case Linkage::Weak:
return "weak";
}
+ llvm_unreachable("Unrecognized llvm.jitlink.Linkage enum");
}
const char *getScopeName(Scope S) {
@@ -85,6 +86,7 @@ const char *getScopeName(Scope S) {
case Scope::Local:
return "local";
}
+ llvm_unreachable("Unrecognized llvm.jitlink.Scope enum");
}
raw_ostream &operator<<(raw_ostream &OS, const Block &B) {
More information about the llvm-commits
mailing list