[lld] r256994 - Simplify. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 15:34:11 PST 2016


Author: ruiu
Date: Wed Jan  6 17:34:11 2016
New Revision: 256994

URL: http://llvm.org/viewvc/llvm-project?rev=256994&view=rev
Log:
Simplify. 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=256994&r1=256993&r2=256994&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Jan  6 17:34:11 2016
@@ -490,8 +490,7 @@ void Writer<ELFT>::addCommonSymbols(std:
 
   uintX_t Off = getBss()->getSize();
   for (DefinedCommon *C : Syms) {
-    uintX_t Align = C->MaxAlignment;
-    Off = align(Off, Align);
+    Off = align(Off, C->MaxAlignment);
     C->OffsetInBss = Off;
     Off += C->Size;
   }




More information about the llvm-commits mailing list