summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-03-01 23:11:57 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-03-01 23:11:57 +0000
commit98a3c80a3ebdca2379fab4ae225512bb1d20a3bd (patch)
treeb8019ed86b30a2ebe30b5c2954f9ac1423a33e8f /llvm/lib/MC/MachObjectWriter.cpp
parent3bc2dedb403f23e38f4ab765fe2b78bd101f041d (diff)
downloadbcm5719-llvm-98a3c80a3ebdca2379fab4ae225512bb1d20a3bd.tar.gz
bcm5719-llvm-98a3c80a3ebdca2379fab4ae225512bb1d20a3bd.zip
Fixes warnings emitted by Visual Studio 2010 compiler.
Patch by Erik Olofsson! llvm-svn: 126796
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index 8af07c74fdf..de5349459d1 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -274,8 +274,8 @@ public:
if (is64Bit())
Write32(0); // reserved3
- assert(OS.tell() - Start == is64Bit() ? macho::Section64Size :
- macho::Section32Size);
+ assert(OS.tell() - Start == (is64Bit() ? macho::Section64Size :
+ macho::Section32Size));
}
void WriteSymtabLoadCommand(uint32_t SymbolOffset, uint32_t NumSymbols,
OpenPOWER on IntegriCloud