From 28742d52e2e47751c7dec6344db54b5fc87640e9 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 20 Sep 2019 18:10:17 +0000 Subject: [PATCH] Fix MSVC "not all control paths return a value" warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372416 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/TextAPI/MachO/Platform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/TextAPI/MachO/Platform.cpp b/lib/TextAPI/MachO/Platform.cpp index ec62a9b3edb..66bb7df9aa5 100644 --- a/lib/TextAPI/MachO/Platform.cpp +++ b/lib/TextAPI/MachO/Platform.cpp @@ -55,7 +55,8 @@ StringRef getPlatformName(PlatformKind Platform) { case PlatformKind::bridgeOS: return "bridgeOS"; } + llvm_unreachable("Unknown llvm.MachO.PlatformKind enum"); } } // end namespace MachO. -} // end namespace llvm. \ No newline at end of file +} // end namespace llvm. -- 2.40.0