forked from OSchip/llvm-project
parent
b1ad5d39a9
commit
49503f827d
|
@ -836,8 +836,8 @@ static void WriteModuleMetadata(const Module *M,
|
|||
Record.clear();
|
||||
|
||||
// Write named metadata operands.
|
||||
for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i)
|
||||
Record.push_back(VE.getMetadataID(NMD.getOperand(i)));
|
||||
for (const MDNode *N : NMD.operands())
|
||||
Record.push_back(VE.getMetadataID(N));
|
||||
Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
|
||||
Record.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue