Skip to content

Commit

Permalink
[IR] Modernize StructuralHashImpl (NFC) (llvm#105951)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 24, 2024
1 parent 2cb25d5 commit d252365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/IR/StructuralHash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); }

Expand All @@ -43,7 +43,7 @@ class StructuralHashImpl {
}

public:
StructuralHashImpl() : Hash(4) {}
StructuralHashImpl() = default;

void updateOperand(Value *Operand) {
hashType(Operand->getType());
Expand Down

0 comments on commit d252365

Please sign in to comment.