diff options
author | Seiya Nuta <nuta@seiya.me> | 2019-06-25 01:08:21 +0000 |
---|---|---|
committer | Seiya Nuta <nuta@seiya.me> | 2019-06-25 01:08:21 +0000 |
commit | 81eb82840524818ec0ec14285c866c09b9634df0 (patch) | |
tree | 51aa90b8f40c8bf2ee395016f86a5d8cf92daf02 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp | |
parent | 25bc27965a43e974577306a61274813de71b8ea6 (diff) | |
download | llvm-81eb82840524818ec0ec14285c866c09b9634df0.zip llvm-81eb82840524818ec0ec14285c866c09b9634df0.tar.gz llvm-81eb82840524818ec0ec14285c866c09b9634df0.tar.bz2 |
[llvm-objcopy][NFCI] Fix build failure with GCC
Here is unreachable since the switch statement above is exhaustive.
llvm-svn: 364263
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
-rw-r--r-- | llvm/tools/llvm-objcopy/llvm-objcopy.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp index 44e0220..acee368 100644 --- a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp +++ b/llvm/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 |