diff options
author | Fangrui Song <maskray@google.com> | 2020-03-03 10:01:51 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-03-03 10:02:34 -0800 |
commit | c0dac0221dd6fb7ebbd21cdc2ea72022e0152545 (patch) | |
tree | 0f22e5f545813354da22c67838e7ffbd23a1e2f6 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | a1611b373795793e45e4e4fa48fda7a5e81155df (diff) | |
download | llvm-c0dac0221dd6fb7ebbd21cdc2ea72022e0152545.zip llvm-c0dac0221dd6fb7ebbd21cdc2ea72022e0152545.tar.gz llvm-c0dac0221dd6fb7ebbd21cdc2ea72022e0152545.tar.bz2 |
[Bitcode] Fix -Wswitch after c5ec8890c95bf9f56beff285efbcc7b797ffb15a
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index f2ee1fd..0d3a98b 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -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"); |