diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-02 17:37:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-02 17:37:30 +0000 |
commit | f2ce949ae97d9213291be81bdde036536c2a0fa1 (patch) | |
tree | 67eb1fa7b305cc75fe6144c54576743930123f22 /llvm/lib/CodeGen/MachOWriter.cpp | |
parent | bc1a280eae241bcaae8c44033c22d579266a8306 (diff) | |
download | bcm5719-llvm-f2ce949ae97d9213291be81bdde036536c2a0fa1.tar.gz bcm5719-llvm-f2ce949ae97d9213291be81bdde036536c2a0fa1.zip |
improve compat with certain versions of GCC (on cygwin?)
llvm-svn: 30054
Diffstat (limited to 'llvm/lib/CodeGen/MachOWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachOWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachOWriter.cpp b/llvm/lib/CodeGen/MachOWriter.cpp index 17001fc2cfc..0f6820eddf0 100644 --- a/llvm/lib/CodeGen/MachOWriter.cpp +++ b/llvm/lib/CodeGen/MachOWriter.cpp @@ -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. |