forked from OSchip/llvm-project
Linker: Remove an unnecessary local variable in for loop, NFC
Reduces changes in a follow-up commit. llvm-svn: 266493
This commit is contained in:
parent
8517c8e81d
commit
8a15dab391
|
@ -999,12 +999,10 @@ void IRLinker::linkNamedMDNodes() {
|
||||||
continue;
|
continue;
|
||||||
NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName());
|
NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName());
|
||||||
// Add Src elements into Dest node.
|
// Add Src elements into Dest node.
|
||||||
for (const MDNode *op : NMD.operands()) {
|
for (const MDNode *Op : NMD.operands())
|
||||||
MDNode *DestMD = MapMetadata(
|
DestNMD->addOperand(MapMetadata(
|
||||||
op, ValueMap, ValueMapperFlags | RF_NullMapMissingGlobalValues,
|
Op, ValueMap, ValueMapperFlags | RF_NullMapMissingGlobalValues,
|
||||||
&TypeMap, &GValMaterializer);
|
&TypeMap, &GValMaterializer));
|
||||||
DestNMD->addOperand(DestMD);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue