forked from OSchip/llvm-project
parent
20bc37c7db
commit
9fa10658ce
|
@ -213,7 +213,7 @@ static Metadata *mapDistinctNode(const UniquableMDNode *Node,
|
||||||
assert(Node->isDistinct() && "Expected distinct node");
|
assert(Node->isDistinct() && "Expected distinct node");
|
||||||
|
|
||||||
// Create the node first so it's available for cyclical references.
|
// 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);
|
mapToMetadata(VM, Node, NewMD);
|
||||||
|
|
||||||
// Fix the operands.
|
// Fix the operands.
|
||||||
|
|
Loading…
Reference in New Issue