[Bitcode] Fix -Wswitch after c5ec8890c9

This commit is contained in:
Fangrui Song 2020-03-03 10:01:51 -08:00
parent a1611b3737
commit c0dac0221d
1 changed files with 3 additions and 0 deletions

View File

@ -730,6 +730,9 @@ static uint64_t getAttrKindEncoding(Attribute::AttrKind Kind) {
llvm_unreachable("Can not encode end-attribute kinds marker.");
case Attribute::None:
llvm_unreachable("Can not encode none-attribute.");
case Attribute::EmptyKey:
case Attribute::TombstoneKey:
llvm_unreachable("Trying to encode EmptyKey/TombstoneKey");
}
llvm_unreachable("Trying to encode unknown attribute");