mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Bitcode: Range-based for, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c3289e0bb
commit
e73fc94f02
@ -836,8 +836,8 @@ static void WriteModuleMetadata(const Module *M,
|
|||||||
Record.clear();
|
Record.clear();
|
||||||
|
|
||||||
// Write named metadata operands.
|
// Write named metadata operands.
|
||||||
for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i)
|
for (const MDNode *N : NMD.operands())
|
||||||
Record.push_back(VE.getMetadataID(NMD.getOperand(i)));
|
Record.push_back(VE.getMetadataID(N));
|
||||||
Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
|
Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
|
||||||
Record.clear();
|
Record.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user