projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de41906
)
IR: Remove redundant calls to MDNode::setHash(), NFC
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 12 Jan 2015 17:57:38 +0000
(17:57 +0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 12 Jan 2015 17:57:38 +0000
(17:57 +0000)
`storeDistinctInContext()` already calls `setHash(0)`.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225642
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Metadata.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Metadata.cpp
b/lib/IR/Metadata.cpp
index bd3805842a58ec3151be9193a00ca1d8e0610fbf..9dd07df1f8d194974a828c009e2e245128ab74ad 100644
(file)
--- a/
lib/IR/Metadata.cpp
+++ b/
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();
}