1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Fix MSVC "not all control paths return a value" warning. NFCI.

llvm-svn: 373730
This commit is contained in:
Simon Pilgrim 2019-10-04 11:24:51 +00:00
parent 08c734c3f8
commit bae3718e6a

View File

@ -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) {