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:
28184c1
)
IR: Simplify code, NFC
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 12 Jan 2015 18:45:01 +0000
(18:45 +0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Mon, 12 Jan 2015 18:45:01 +0000
(18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225647
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 7ed0b951a3affeef5ccaea11353297cd283098d2..d048a7f8031ba0c409dbcf3b1612b340ece02b1b 100644
(file)
--- a/
lib/IR/Metadata.cpp
+++ b/
lib/IR/Metadata.cpp
@@
-619,7
+619,7
@@
void MDNode::replaceOperandWith(unsigned I, Metadata *New) {
if (getOperand(I) == New)
return;
- if (is
StoredDistinctInContext() || isa<MDNodeFwdDecl>(this
)) {
+ if (is
Distinct(
)) {
setOperand(I, New);
return;
}