[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.

llvm-svn: 364263

llvm/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