[NFC] Try fix ubsan buildbot after 876d133789

This commit is contained in:
Tyker
2020-03-03 17:42:57 +01:00
parent 388bccb013
commit c5ec8890c9
4 changed files with 9 additions and 5 deletions

View File

@@ -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;