summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachOWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-09-02 17:37:30 +0000
committerChris Lattner <sabre@nondot.org>2006-09-02 17:37:30 +0000
commitf2ce949ae97d9213291be81bdde036536c2a0fa1 (patch)
tree67eb1fa7b305cc75fe6144c54576743930123f22 /llvm/lib/CodeGen/MachOWriter.cpp
parentbc1a280eae241bcaae8c44033c22d579266a8306 (diff)
downloadbcm5719-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.cpp2
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.
OpenPOWER on IntegriCloud