From 7dab840fd4f26fc814b323e017f549f9fb43fcd5 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. llvm-svn: 372416 --- llvm/lib/TextAPI/MachO/Platform.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/TextAPI/MachO/Platform.cpp b/llvm/lib/TextAPI/MachO/Platform.cpp index ec62a9b..66bb7df 100644 --- a/llvm/lib/TextAPI/MachO/Platform.cpp +++ b/llvm/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.7.4