aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTyker <tyker1@outlook.com>2020-03-03 17:42:57 +0100
committerTyker <tyker1@outlook.com>2020-03-03 17:53:02 +0100
commitc5ec8890c95bf9f56beff285efbcc7b797ffb15a (patch)
treea7bf378f93576ca4d89fa2df166dcfe4183600ca /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent388bccb0135977a9d51e18e59cdebb26071cb842 (diff)
downloadllvm-c5ec8890c95bf9f56beff285efbcc7b797ffb15a.zip
llvm-c5ec8890c95bf9f56beff285efbcc7b797ffb15a.tar.gz
llvm-c5ec8890c95bf9f56beff285efbcc7b797ffb15a.tar.bz2
[NFC] Try fix ubsan buildbot after 876d13378931bee3dcefafff8729c40d5457ff31
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 0d24359..de2a6b4 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1218,6 +1218,8 @@ StructType *BitcodeReader::createIdentifiedStructType(LLVMContext &Context) {
static uint64_t getRawAttributeMask(Attribute::AttrKind Val) {
switch (Val) {
case Attribute::EndAttrKinds:
+ case Attribute::EmptyKey:
+ case Attribute::TombstoneKey:
llvm_unreachable("Synthetic enumerators which should never get here");
case Attribute::None: return 0;