[lld] r297831 - Use uint32_t for alignment.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 15 05:43:54 PDT 2017
Author: rafael
Date: Wed Mar 15 07:43:54 2017
New Revision: 297831
URL: http://llvm.org/viewvc/llvm-project?rev=297831&view=rev
Log:
Use uint32_t for alignment.
Modified:
lld/trunk/ELF/SyntheticSections.cpp
Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=297831&r1=297830&r2=297831&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Wed Mar 15 07:43:54 2017
@@ -79,9 +79,9 @@ template <class ELFT> InputSection *elf:
// Assign offsets to symbols.
size_t Size = 0;
- size_t Alignment = 1;
+ uint32_t Alignment = 1;
for (DefinedCommon *Sym : Syms) {
- Alignment = std::max<size_t>(Alignment, Sym->Alignment);
+ Alignment = std::max(Alignment, Sym->Alignment);
Size = alignTo(Size, Sym->Alignment);
// Compute symbol offset relative to beginning of input section.
More information about the llvm-commits
mailing list