ValueMapper: Reuse local variable, NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-08-03 03:24:28 +00:00
parent 379e328355
commit 7b16662127

View File

@ -205,8 +205,8 @@ static bool remap(const MDNode *OldNode, MDNode *NewNode,
assert(NewNode->getOperand(I) == Old &&
"Expected old operands to already be in place");
Metadata *New = mapMetadataOp(OldNode->getOperand(I), Cycles, VM, Flags,
TypeMapper, Materializer);
Metadata *New =
mapMetadataOp(Old, Cycles, VM, Flags, TypeMapper, Materializer);
if (Old != New) {
AnyChanged = true;
NewNode->replaceOperandWith(I, New);