Do not use "default" for a fully-covered switch.

llvm-svn: 262846
This commit is contained in:
Rui Ueyama 2016-03-07 19:06:14 +00:00
parent 06eff5f2c8
commit 68fae23475
1 changed files with 2 additions and 2 deletions

View File

@ -416,12 +416,12 @@ bool BitcodeFile::classof(const InputFile *F) {
static uint8_t getGvVisibility(const GlobalValue *GV) { static uint8_t getGvVisibility(const GlobalValue *GV) {
switch (GV->getVisibility()) { switch (GV->getVisibility()) {
case GlobalValue::DefaultVisibility:
return STV_DEFAULT;
case GlobalValue::HiddenVisibility: case GlobalValue::HiddenVisibility:
return STV_HIDDEN; return STV_HIDDEN;
case GlobalValue::ProtectedVisibility: case GlobalValue::ProtectedVisibility:
return STV_PROTECTED; return STV_PROTECTED;
default:
return STV_DEFAULT;
} }
} }