[IR] Modernize StructuralHashImpl (NFC) (#105951)
This commit is contained in:
parent
2cb25d5608
commit
d252365a27
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ namespace {
|
|||
// by the MergeFunctions pass.
|
||||
|
||||
class StructuralHashImpl {
|
||||
uint64_t Hash;
|
||||
uint64_t Hash = 4;
|
||||
|
||||
void hash(uint64_t V) { Hash = hashing::detail::hash_16_bytes(Hash, V); }
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ class StructuralHashImpl {
|
|||
}
|
||||
|
||||
public:
|
||||
StructuralHashImpl() : Hash(4) {}
|
||||
StructuralHashImpl() = default;
|
||||
|
||||
void updateOperand(Value *Operand) {
|
||||
hashType(Operand->getType());
|
||||
|
|
|
|||
Loading…
Reference in a new issue