mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
improve compat with certain versions of GCC (on cygwin?)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2efe109452
commit
94425996c5
@ -197,7 +197,7 @@ void MachOWriter::AddSymbolToSection(MachOSection &Sec, GlobalVariable *GV) {
|
||||
// desired section alignment, which must be at least as much as required by
|
||||
// this symbol.
|
||||
if (Align) {
|
||||
Sec.align = std::max(Sec.align, Align);
|
||||
Sec.align = std::max(unsigned(Sec.align), Align);
|
||||
Sec.size = (Sec.size + Align - 1) & ~(Align-1);
|
||||
}
|
||||
// Record the offset of the symbol, and then allocate space for it.
|
||||
|
Loading…
Reference in New Issue
Block a user