Skip to content

Commit 4749cc4

Browse files
[Bitcode] Use a range-based for loop (NFC) (#168489)
Identified with modernize-loop-convert.
1 parent 1e18b48 commit 4749cc4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Bitcode/Writer/ValueEnumerator.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,8 @@ void ValueEnumerator::OptimizeConstants(unsigned CstStart, unsigned CstEnd) {
616616
/// EnumerateValueSymbolTable - Insert all of the values in the specified symbol
617617
/// table into the values table.
618618
void ValueEnumerator::EnumerateValueSymbolTable(const ValueSymbolTable &VST) {
619-
for (ValueSymbolTable::const_iterator VI = VST.begin(), VE = VST.end();
620-
VI != VE; ++VI)
621-
EnumerateValue(VI->getValue());
619+
for (const auto &VI : VST)
620+
EnumerateValue(VI.getValue());
622621
}
623622

624623
/// Insert all of the values referenced by named metadata in the specified

0 commit comments

Comments
 (0)