aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit94425996c5f58b8c2eb8be3c48c5f80fcb0d3481 (patch)
tree18f097f7d8eea59308151c186cd87242c0e9662c /lib/CodeGen/MachOWriter.cpp
parent2efe1094528b08460508bb8a2028c249536b353a (diff)
downloadexternal_llvm-94425996c5f58b8c2eb8be3c48c5f80fcb0d3481.zip
external_llvm-94425996c5f58b8c2eb8be3c48c5f80fcb0d3481.tar.gz
external_llvm-94425996c5f58b8c2eb8be3c48c5f80fcb0d3481.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/MachOWriter.cpp')
-rw-r--r--lib/CodeGen/MachOWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp
index 17001fc..0f6820e 100644
--- a/lib/CodeGen/MachOWriter.cpp
+++ b/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.