[llvm] r225647 - IR: Simplify code, NFC

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Jan 12 10:45:01 PST 2015


Author: dexonsmith
Date: Mon Jan 12 12:45:01 2015
New Revision: 225647

URL: http://llvm.org/viewvc/llvm-project?rev=225647&view=rev
Log:
IR: Simplify code, NFC

Modified:
    llvm/trunk/lib/IR/Metadata.cpp

Modified: llvm/trunk/lib/IR/Metadata.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Metadata.cpp?rev=225647&r1=225646&r2=225647&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Metadata.cpp (original)
+++ llvm/trunk/lib/IR/Metadata.cpp Mon Jan 12 12:45:01 2015
@@ -619,7 +619,7 @@ void MDNode::replaceOperandWith(unsigned
   if (getOperand(I) == New)
     return;
 
-  if (isStoredDistinctInContext() || isa<MDNodeFwdDecl>(this)) {
+  if (isDistinct()) {
     setOperand(I, New);
     return;
   }





More information about the llvm-commits mailing list