BitcodeWriter: Stop using implicit ilist iterator conversion, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Oct 2015 03:26:19 +0000 (03:26 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 13 Oct 2015 03:26:19 +0000 (03:26 +0000)
commitf25f287e36aa290857d6e3719d8ff2ef1fc87ef7
tree55a09ce96faa1e3eb89cc01847452a19e2e2bbd5
parent1cf9f8137160e4dca68dff0310f0292d1ec75e8e
BitcodeWriter: Stop using implicit ilist iterator conversion, NFC

Now LLVMBitWriter compiles without implicit ilist iterator conversions.

In these cases, the cleanest thing was to switch to range-based for
loops.  Since there wasn't much noise I converted sub-loops and parent
loops as a drive-by.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250144 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp