From 21adfc0d6e6a3acbd37db0a69f91c6ad6b31979a Mon Sep 17 00:00:00 2001 From: Seiya Nuta Date: Tue, 25 Jun 2019 01:08:21 +0000 Subject: [PATCH] [llvm-objcopy][NFCI] Fix build failure with GCC Here is unreachable since the switch statement above is exhaustive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364263 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objcopy/llvm-objcopy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/llvm-objcopy/llvm-objcopy.cpp b/tools/llvm-objcopy/llvm-objcopy.cpp index 44e0220a7d3..acee368196b 100644 --- a/tools/llvm-objcopy/llvm-objcopy.cpp +++ b/tools/llvm-objcopy/llvm-objcopy.cpp @@ -150,6 +150,8 @@ static Error executeObjcopyOnRawBinary(const CopyConfig &Config, case FileFormat::Unspecified: return elf::executeObjcopyOnRawBinary(Config, In, Out); } + + llvm_unreachable("unsupported output format"); } /// The function executeObjcopyOnBinary does the dispatch based on the format -- 2.40.0