]> granicus.if.org Git - llvm/commitdiff
Fix MSVC "not all control paths return a value" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 18 Oct 2019 09:59:40 +0000 (09:59 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 18 Oct 2019 09:59:40 +0000 (09:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375214 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objcopy/CopyConfig.cpp

index c8056311018aa8f6319e7b6c869f3005a3839b18..d707bec20c494782b6403eadde597eb39be48031 100644 (file)
@@ -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<StringRef> &SymbolsToRename,