summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 22:35:34 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 22:35:34 +0000
commit49503f827ddfba6c741ba60bb86cda942c92d672 (patch)
tree70419249a6262240a0b8154d0a543b17e84db986 /llvm/lib/Bitcode/Writer
parentb1ad5d39a9815c1788cbe30072d48e9d5da3646f (diff)
downloadbcm5719-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.cpp4
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();
}
OpenPOWER on IntegriCloud