From 9fa10658ce40b95f0f1b9beaf18fbe61998da6f8 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 19 Jan 2015 22:41:14 +0000 Subject: [PATCH] Skip upcast, NFC llvm-svn: 226514 --- llvm/lib/Transforms/Utils/ValueMapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/ValueMapper.cpp b/llvm/lib/Transforms/Utils/ValueMapper.cpp index 4033ccbf1527..89f619b66a43 100644 --- a/llvm/lib/Transforms/Utils/ValueMapper.cpp +++ b/llvm/lib/Transforms/Utils/ValueMapper.cpp @@ -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.