[ELF] Fix typo in the type name of the range-based loop item.
authorSimon Atanasyan <simon@atanasyan.com>
Tue, 10 Jun 2014 13:43:19 +0000 (13:43 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Tue, 10 Jun 2014 13:43:19 +0000 (13:43 +0000)
No functional changes.

llvm-svn: 210531

lld/lib/ReaderWriter/ELF/OutputELFWriter.h

index 394695e..72218ca 100644 (file)
@@ -176,7 +176,7 @@ void OutputELFWriter<ELFT>::buildDynamicSymbolTable(const File &file) {
           _dynamicSymbolTable->addSymbol(atom->_atom, section->ordinal(),
                                          atom->_virtualAddr, atom);
       }
-  for (const auto sla : file.sharedLibrary()) {
+  for (const auto &sla : file.sharedLibrary()) {
     _dynamicSymbolTable->addSymbol(sla, ELF::SHN_UNDEF);
     _soNeeded.insert(sla->loadName());
   }