[IR] Remove unnecessary uint64_t casts (NFC)

As pointed out by foad, it's not necessary to work on uint64_t
here. The values used here fit uint8_t.
This commit is contained in:
Nikita Popov 2020-06-23 22:18:56 +02:00
parent dc72be4e01
commit 52e86797ba

View File

@ -193,11 +193,11 @@ class AttributeBitSet {
public:
bool hasAttribute(Attribute::AttrKind Kind) const {
return AvailableAttrs[Kind / 8] & ((uint64_t)1) << (Kind % 8);
return AvailableAttrs[Kind / 8] & (1 << (Kind % 8));
}
void addAttribute(Attribute::AttrKind Kind) {
AvailableAttrs[Kind / 8] |= 1ULL << (Kind % 8);
AvailableAttrs[Kind / 8] |= 1 << (Kind % 8);
}
};