From 3f5a6f992c55977572710709598219acfc952b47 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 18 Oct 2019 09:59:40 +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@375214 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objcopy/CopyConfig.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/llvm-objcopy/CopyConfig.cpp b/tools/llvm-objcopy/CopyConfig.cpp index c8056311018..d707bec20c4 100644 --- a/tools/llvm-objcopy/CopyConfig.cpp +++ b/tools/llvm-objcopy/CopyConfig.cpp @@ -316,6 +316,7 @@ NameOrPattern::create(StringRef Pattern, MatchStyle MS, ("^" + Pattern.ltrim('^').rtrim('$') + "$").toStringRef(Data))); } } + llvm_unreachable("Unhandled llvm.objcopy.MatchStyle enum"); } static Error addSymbolsToRenameFromFile(StringMap &SymbolsToRename, -- 2.40.0