OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efe109
)
improve compat with certain versions of GCC (on cygwin?)
author
Chris Lattner
<sabre@nondot.org>
Sat, 2 Sep 2006 17:37:30 +0000
(17:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 2 Sep 2006 17:37:30 +0000
(17:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30054
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachOWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachOWriter.cpp
b/lib/CodeGen/MachOWriter.cpp
index
17001fc
..
0f6820e
100644
(file)
--- 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.