mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 05:35:11 +00:00
Linker: Remove an unnecessary local variable in for loop, NFC
Reduces changes in a follow-up commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266493 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b337fbb4a1
commit
fef9f1f667
@ -999,12 +999,10 @@ void IRLinker::linkNamedMDNodes() {
|
||||
continue;
|
||||
NamedMDNode *DestNMD = DstM.getOrInsertNamedMetadata(NMD.getName());
|
||||
// Add Src elements into Dest node.
|
||||
for (const MDNode *op : NMD.operands()) {
|
||||
MDNode *DestMD = MapMetadata(
|
||||
op, ValueMap, ValueMapperFlags | RF_NullMapMissingGlobalValues,
|
||||
&TypeMap, &GValMaterializer);
|
||||
DestNMD->addOperand(DestMD);
|
||||
}
|
||||
for (const MDNode *Op : NMD.operands())
|
||||
DestNMD->addOperand(MapMetadata(
|
||||
Op, ValueMap, ValueMapperFlags | RF_NullMapMissingGlobalValues,
|
||||
&TypeMap, &GValMaterializer));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user