[lld] r241089 - Use copy init instead of direct init.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 30 11:04:47 PDT 2015
Author: rafael
Date: Tue Jun 30 13:04:46 2015
New Revision: 241089
URL: http://llvm.org/viewvc/llvm-project?rev=241089&view=rev
Log:
Use copy init instead of direct init.
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp?rev=241089&r1=241088&r2=241089&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp Tue Jun 30 13:04:46 2015
@@ -140,8 +140,8 @@ std::error_code ELFFile<ELFT>::createAto
if (std::error_code ec = sectionName.getError())
return ec;
- auto rai(_objFile->rela_begin(§ion));
- auto rae(_objFile->rela_end(§ion));
+ auto rai = _objFile->rela_begin(§ion);
+ auto rae = _objFile->rela_end(§ion);
_relocationAddendReferences[sHdr] = make_range(rai, rae);
totalRelocs += std::distance(rai, rae);
@@ -152,8 +152,8 @@ std::error_code ELFFile<ELFT>::createAto
if (std::error_code ec = sectionName.getError())
return ec;
- auto ri(_objFile->rel_begin(§ion));
- auto re(_objFile->rel_end(§ion));
+ auto ri = _objFile->rel_begin(§ion);
+ auto re = _objFile->rel_end(§ion);
_relocationReferences[sHdr] = make_range(ri, re);
totalRelocs += std::distance(ri, re);
More information about the llvm-commits
mailing list