diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-03-07 19:06:14 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-03-07 19:06:14 +0000 |
| commit | 68fae2347531b50b47ce2a2257446c31cd2e1f61 (patch) | |
| tree | e1cfd1bd41d2a46948e8e252567c72220dcffefa | |
| parent | 06eff5f2c8f9920d93ce485c7f41b598f0a99c1e (diff) | |
| download | bcm5719-llvm-68fae2347531b50b47ce2a2257446c31cd2e1f61.tar.gz bcm5719-llvm-68fae2347531b50b47ce2a2257446c31cd2e1f61.zip | |
Do not use "default" for a fully-covered switch.
llvm-svn: 262846
| -rw-r--r-- | lld/ELF/InputFiles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 51fe01e3e3a..1bd83f0ec24 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -416,12 +416,12 @@ bool BitcodeFile::classof(const InputFile *F) { static uint8_t getGvVisibility(const GlobalValue *GV) { switch (GV->getVisibility()) { + case GlobalValue::DefaultVisibility: + return STV_DEFAULT; case GlobalValue::HiddenVisibility: return STV_HIDDEN; case GlobalValue::ProtectedVisibility: return STV_PROTECTED; - default: - return STV_DEFAULT; } } |

