]> granicus.if.org Git - llvm/commitdiff
[llvm-objcopy][NFCI] Fix build failure with GCC
authorSeiya Nuta <nuta@seiya.me>
Tue, 25 Jun 2019 01:08:21 +0000 (01:08 +0000)
committerSeiya Nuta <nuta@seiya.me>
Tue, 25 Jun 2019 01:08:21 +0000 (01:08 +0000)
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

index 44e0220a7d37eae2d77ec3e0f60395c216c4df92..acee368196bc42eccd0c4088c25048710e6c8364 100644 (file)
@@ -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