[lld] r266303 - Removed excessive line. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 06:56:29 PDT 2016
Author: grimar
Date: Thu Apr 14 08:56:28 2016
New Revision: 266303
URL: http://llvm.org/viewvc/llvm-project?rev=266303&view=rev
Log:
Removed excessive line. NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=266303&r1=266302&r2=266303&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Apr 14 08:56:28 2016
@@ -880,9 +880,8 @@ template <class ELFT> static uint32_t ge
template <class ELFT>
void Writer<ELFT>::addCopyRelSymbol(SharedSymbol<ELFT> *SS) {
ensureBss();
- uintX_t Off = Out<ELFT>::Bss->getSize();
uintX_t Align = getAlignment(SS);
- Off = alignTo(Off, Align);
+ uintX_t Off = alignTo(Out<ELFT>::Bss->getSize(), Align);
Out<ELFT>::Bss->setSize(Off + SS->template getSize<ELFT>());
Out<ELFT>::Bss->updateAlign(Align);
uintX_t Shndx = SS->Sym.st_shndx;
More information about the llvm-commits
mailing list