if (Node->isDistinct()) {
// Create the node first so it's available for cyclical references.
SmallVector<Metadata *, 4> EmptyOps(Node->getNumOperands());
- MDNode *NewMD = MDNode::getDistinct(Node->getContext(), EmptyOps);
+ MDTuple *NewMD = MDTuple::getDistinct(Node->getContext(), EmptyOps);
mapToMetadata(VM, Node, NewMD);
// Fix the operands.
for (I = 0; I != E; ++I)
Elts.push_back(getMappedOp(Node->getOperand(I)));
- MDNode *NewMD = MDNode::get(Node->getContext(), Elts);
+ MDNode *NewMD = MDTuple::get(Node->getContext(), Elts);
Dummy->replaceAllUsesWith(NewMD);
MDNode::deleteTemporary(Dummy);
return mapToMetadata(VM, Node, NewMD);