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:
Duncan P. N. Exon Smith 2015-01-12 17:57:38 +00:00
parent de4190697a
commit 21245280cc

View File

@ -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();
}