From: Duncan P. N. Exon Smith Date: Mon, 19 Jan 2015 22:41:14 +0000 (+0000) Subject: Skip upcast, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc78e70ee0e9c37fb51efa1be57c4a67f9637ca0;p=oota-llvm.git Skip upcast, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226514 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/ValueMapper.cpp b/lib/Transforms/Utils/ValueMapper.cpp index 4033ccbf152..89f619b66a4 100644 --- a/lib/Transforms/Utils/ValueMapper.cpp +++ b/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.