IR: Simplify code, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-12 18:45:01 +00:00
parent 28184c10c9
commit 0315eb0bcb

View File

@ -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;
}