diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-12 18:45:01 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-12 18:45:01 +0000 |
commit | 686162b1bc56209000fd830a178efb5d36030f7c (patch) | |
tree | 2a038700fe563f8fcf5afc6801b9211a07cdba16 /llvm/lib/IR/Metadata.cpp | |
parent | d1474eea718ff867420a6e39d9c1065447d5e812 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |