[Bitcode] Fix -Wswitch after c5ec8890c95bf9f56beff285efbcc7b797ffb15a
authorFangrui Song <maskray@google.com>
Tue, 3 Mar 2020 18:01:51 +0000 (10:01 -0800)
committerFangrui Song <maskray@google.com>
Tue, 3 Mar 2020 18:02:34 +0000 (10:02 -0800)
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

index f2ee1fd..0d3a98b 100644 (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");