mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
IR: Remove redundant calls to MDNode::setHash(), NFC
`storeDistinctInContext()` already calls `setHash(0)`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225642 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -522,7 +522,6 @@ void GenericMDNode::handleChangedOperand(void *Ref, Metadata *New) {
|
|||||||
// Drop uniquing for self-reference cycles.
|
// Drop uniquing for self-reference cycles.
|
||||||
if (New == this) {
|
if (New == this) {
|
||||||
storeDistinctInContext();
|
storeDistinctInContext();
|
||||||
setHash(0);
|
|
||||||
if (!isResolved())
|
if (!isResolved())
|
||||||
resolve();
|
resolve();
|
||||||
return;
|
return;
|
||||||
@ -569,7 +568,6 @@ void GenericMDNode::handleChangedOperand(void *Ref, Metadata *New) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Store in non-uniqued form if this node has already been resolved.
|
// Store in non-uniqued form if this node has already been resolved.
|
||||||
setHash(0);
|
|
||||||
storeDistinctInContext();
|
storeDistinctInContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user