uint64_t AttributeImpl::getAttrMask(Attribute::AttrKind Val) {
// FIXME: Remove this.
switch (Val) {
- default:
- llvm_unreachable("Unsupported attribute type");
case Attribute::EndAttrKinds:
llvm_unreachable("Synthetic enumerators which should never get here");
case Attribute::ThreadSafety: return 1ULL << 36;
case Attribute::UninitializedChecks: return 1ULL << 37;
case Attribute::NoBuiltin: return 1ULL << 38;
- }
+ }
+ llvm_unreachable("Unsupported attribute type");
}
//===----------------------------------------------------------------------===//