aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-02-01 01:50:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-02-01 01:50:49 +0000
commite087afa128211285ee41297fa5fc22fe5f2d3eb1 (patch)
treeda22d4005c674abb62a2fa627ef78e529416840e /lib/MC/MachObjectWriter.cpp
parent8e2da0ce9d70606e10889d17f481842586132d88 (diff)
downloadexternal_llvm-e087afa128211285ee41297fa5fc22fe5f2d3eb1.zip
external_llvm-e087afa128211285ee41297fa5fc22fe5f2d3eb1.tar.gz
external_llvm-e087afa128211285ee41297fa5fc22fe5f2d3eb1.tar.bz2
Fix bogus assert condition noticed by Csaba Raduly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r--lib/MC/MachObjectWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index aa0178e..1fb0f99 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/lib/MC/MachObjectWriter.cpp
@@ -185,8 +185,8 @@ public:
if (is64Bit())
Write32(0); // reserved
- assert(OS.tell() - Start == is64Bit() ?
- macho::Header64Size : macho::Header32Size);
+ assert(OS.tell() - Start ==
+ (is64Bit() ? macho::Header64Size : macho::Header32Size));
}
/// WriteSegmentLoadCommand - Write a segment load command.