Bitcode: Range-based for, NFC

llvm-svn: 225716
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-12 22:35:34 +00:00
parent b1ad5d39a9
commit 49503f827d
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}