From 0315eb0bcba5d78054762bd10b4ad9556403a0c2 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225647 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Metadata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1