summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Metadata.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 18:45:01 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 18:45:01 +0000
commit686162b1bc56209000fd830a178efb5d36030f7c (patch)
tree2a038700fe563f8fcf5afc6801b9211a07cdba16 /llvm/lib/IR/Metadata.cpp
parentd1474eea718ff867420a6e39d9c1065447d5e812 (diff)
downloadbcm5719-llvm-686162b1bc56209000fd830a178efb5d36030f7c.tar.gz
bcm5719-llvm-686162b1bc56209000fd830a178efb5d36030f7c.zip
IR: Simplify code, NFC
llvm-svn: 225647
Diffstat (limited to 'llvm/lib/IR/Metadata.cpp')
-rw-r--r--llvm/lib/IR/Metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp
index 7ed0b951a3a..d048a7f8031 100644
--- a/llvm/lib/IR/Metadata.cpp
+++ b/llvm/lib/IR/Metadata.cpp
@@ -619,7 +619,7 @@ void MDNode::replaceOperandWith(unsigned I, Metadata *New) {
if (getOperand(I) == New)
return;
- if (isStoredDistinctInContext() || isa<MDNodeFwdDecl>(this)) {
+ if (isDistinct()) {
setOperand(I, New);
return;
}
OpenPOWER on IntegriCloud