From 686162b1bc56209000fd830a178efb5d36030f7c Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 12 Jan 2015 18:45:01 +0000 Subject: [PATCH] IR: Simplify code, NFC llvm-svn: 225647 --- llvm/lib/IR/Metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/Metadata.cpp b/llvm/lib/IR/Metadata.cpp index 7ed0b95..d048a7f 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(this)) { + if (isDistinct()) { setOperand(I, New); return; } -- 2.7.4