mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-13 11:22:03 +00:00
[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:
parent
dc72be4e01
commit
52e86797ba
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user