diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-12 22:35:34 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-12 22:35:34 +0000 |
commit | 49503f827ddfba6c741ba60bb86cda942c92d672 (patch) | |
tree | 70419249a6262240a0b8154d0a543b17e84db986 /llvm/lib/Bitcode/Writer | |
parent | b1ad5d39a9815c1788cbe30072d48e9d5da3646f (diff) | |
download | bcm5719-llvm-49503f827ddfba6c741ba60bb86cda942c92d672.tar.gz bcm5719-llvm-49503f827ddfba6c741ba60bb86cda942c92d672.zip |
Bitcode: Range-based for, NFC
llvm-svn: 225716
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 8e1610982c4..9d14a1afb61 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -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(); } |