[llvm-commits] [llvm] r124645 - /llvm/trunk/lib/MC/MachObjectWriter.cpp
Evan Cheng
evan.cheng at apple.com
Mon Jan 31 17:50:50 PST 2011
Author: evancheng
Date: Mon Jan 31 19:50:49 2011
New Revision: 124645
URL: http://llvm.org/viewvc/llvm-project?rev=124645&view=rev
Log:
Fix bogus assert condition noticed by Csaba Raduly.
Modified:
llvm/trunk/lib/MC/MachObjectWriter.cpp
Modified: llvm/trunk/lib/MC/MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MachObjectWriter.cpp?rev=124645&r1=124644&r2=124645&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MachObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/MachObjectWriter.cpp Mon Jan 31 19:50:49 2011
@@ -185,8 +185,8 @@
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.
More information about the llvm-commits
mailing list