projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1611b3
)
[Bitcode] Fix -Wswitch after c5ec8890c95bf9f56beff285efbcc7b797ffb15a
author
Fangrui Song
<maskray@google.com>
Tue, 3 Mar 2020 18:01:51 +0000
(10:01 -0800)
committer
Fangrui Song
<maskray@google.com>
Tue, 3 Mar 2020 18:02:34 +0000
(10:02 -0800)
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index f2ee1fd930a8d7b6add5e5c3d0bcc1a8488cd68e..0d3a98b9092150802bd1f82765149b9083752834 100644
(file)
--- 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");