mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Fixed buggy caching of the hash value of an ImutAVLTree node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8893b0d3ac
commit
3387060470
@ -231,9 +231,12 @@ private:
|
||||
}
|
||||
|
||||
inline unsigned ComputeHash() {
|
||||
if (!isMutable() && Hash) return Hash;
|
||||
Hash = ComputeHash(getSafeLeft(), getRight(), getValue());
|
||||
return Hash;
|
||||
if (Hash) return Hash;
|
||||
|
||||
unsigned X = ComputeHash(getSafeLeft(), getRight(), getValue());
|
||||
if (!isMutable()) Hash = X;
|
||||
|
||||
return X;
|
||||
}
|
||||
|
||||
/// Profile - Generates a FoldingSet profile for a tree node before it is
|
||||
|
Loading…
x
Reference in New Issue
Block a user