We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb25d5 commit d252365Copy full SHA for d252365
llvm/lib/IR/StructuralHash.cpp
@@ -24,7 +24,7 @@ namespace {
24
// by the MergeFunctions pass.
25
26
class StructuralHashImpl {
27
- uint64_t Hash;
+ uint64_t Hash = 4;
28
29
void hash(uint64_t V) { Hash = hashing::detail::hash_16_bytes(Hash, V); }
30
@@ -43,7 +43,7 @@ class StructuralHashImpl {
43
}
44
45
public:
46
- StructuralHashImpl() : Hash(4) {}
+ StructuralHashImpl() = default;
47
48
void updateOperand(Value *Operand) {
49
hashType(Operand->getType());
0 commit comments