Skip to content

Commit

Permalink
[Bitcode] Fix -Wswitch after c5ec889
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Mar 3, 2020
1 parent a1611b3 commit c0dac02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit c0dac02

Please sign in to comment.