[lld] r286054 - Fix build breakage.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 5 16:14:54 PDT 2016
Author: ruiu
Date: Sat Nov 5 18:14:54 2016
New Revision: 286054
URL: http://llvm.org/viewvc/llvm-project?rev=286054&view=rev
Log:
Fix build breakage.
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=286054&r1=286053&r2=286054&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Sat Nov 5 18:14:54 2016
@@ -64,7 +64,7 @@ CommonSection<ELFT>::CommonSection()
size_t Size = 0;
size_t Alignment = 1;
for (DefinedCommon *Sym : Syms) {
- Alignment = std::max(Alignment, Sym->Alignment);
+ Alignment = std::max<size_t>(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