[llvm] Use llvm::reverse (NFC)
This commit is contained in:
@@ -6733,10 +6733,10 @@ llvm::getBitcodeFileContents(MemoryBufferRef Buffer) {
|
||||
// not have its own string table. A bitcode file may have multiple
|
||||
// string tables if it was created by binary concatenation, for example
|
||||
// with "llvm-cat -b".
|
||||
for (auto I = F.Mods.rbegin(), E = F.Mods.rend(); I != E; ++I) {
|
||||
if (!I->Strtab.empty())
|
||||
for (BitcodeModule &I : llvm::reverse(F.Mods)) {
|
||||
if (!I.Strtab.empty())
|
||||
break;
|
||||
I->Strtab = *Strtab;
|
||||
I.Strtab = *Strtab;
|
||||
}
|
||||
// Similarly, the string table is used by every preceding symbol table;
|
||||
// normally there will be just one unless the bitcode file was created
|
||||
|
||||
Reference in New Issue
Block a user