From: Duncan P. N. Exon Smith Date: Mon, 12 Jan 2015 18:45:01 +0000 (+0000) Subject: IR: Simplify code, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0315eb0bcba5d78054762bd10b4ad9556403a0c2;p=oota-llvm.git IR: Simplify code, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225647 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Metadata.cpp b/lib/IR/Metadata.cpp index 7ed0b951a3a..d048a7f8031 100644 --- 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 (isStoredDistinctInContext() || isa(this)) { + if (isDistinct()) { setOperand(I, New); return; }