mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +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:
parent
de4190697a
commit
21245280cc
@ -522,7 +522,6 @@ void GenericMDNode::handleChangedOperand(void *Ref, Metadata *New) {
|
||||
// Drop uniquing for self-reference cycles.
|
||||
if (New == this) {
|
||||
storeDistinctInContext();
|
||||
setHash(0);
|
||||
if (!isResolved())
|
||||
resolve();
|
||||
return;
|
||||
@ -569,7 +568,6 @@ void GenericMDNode::handleChangedOperand(void *Ref, Metadata *New) {
|
||||
}
|
||||
|
||||
// Store in non-uniqued form if this node has already been resolved.
|
||||
setHash(0);
|
||||
storeDistinctInContext();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user