Skip upcast, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 22:41:14 +0000 (22:41 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 22:41:14 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ValueMapper.cpp

index 4033ccbf15278614c9f2bb936791b02982a4f6e6..89f619b66a436774ffb8cb76293f0a0317f3fd3b 100644 (file)
@@ -213,7 +213,7 @@ static Metadata *mapDistinctNode(const UniquableMDNode *Node,
   assert(Node->isDistinct() && "Expected distinct node");
 
   // Create the node first so it's available for cyclical references.
-  MDNode *NewMD = MDNode::replaceWithDistinct(cloneMDNode(Node));
+  UniquableMDNode *NewMD = MDNode::replaceWithDistinct(cloneMDNode(Node));
   mapToMetadata(VM, Node, NewMD);
 
   // Fix the operands.