summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 17:57:38 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 17:57:38 +0000
commit54df9896e3ac1a68703ecab9cce89f572ede45fa (patch)
tree27337f4837c9cd8f3f51797bf35ea25ce9800c8f /llvm
parent00ede840845ee6243f244edb6aee6dba499a12bc (diff)
downloadbcm5719-llvm-54df9896e3ac1a68703ecab9cce89f572ede45fa.tar.gz
bcm5719-llvm-54df9896e3ac1a68703ecab9cce89f572ede45fa.zip
IR: Remove redundant calls to MDNode::setHash(), NFC
`storeDistinctInContext()` already calls `setHash(0)`. llvm-svn: 225642
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/IR/Metadata.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index bd3805842a5..9dd07df1f8d 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -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();
}
OpenPOWER on IntegriCloud