[llvm] c0dac02 - [Bitcode] Fix -Wswitch after c5ec8890c95bf9f56beff285efbcc7b797ffb15a
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 10:03:13 PST 2020
Author: Fangrui Song
Date: 2020-03-03T10:02:34-08:00
New Revision: c0dac0221dd6fb7ebbd21cdc2ea72022e0152545
URL: https://github.com/llvm/llvm-project/commit/c0dac0221dd6fb7ebbd21cdc2ea72022e0152545
DIFF: https://github.com/llvm/llvm-project/commit/c0dac0221dd6fb7ebbd21cdc2ea72022e0152545.diff
LOG: [Bitcode] Fix -Wswitch after c5ec8890c95bf9f56beff285efbcc7b797ffb15a
Added:
Modified:
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index f2ee1fd930a8..0d3a98b90921 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");
More information about the llvm-commits
mailing list