Fix bogus assert condition noticed by Csaba Raduly.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 1 Feb 2011 01:50:49 +0000 (01:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 1 Feb 2011 01:50:49 +0000 (01:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124645 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MachObjectWriter.cpp

index aa0178e92eccb4824da2c803bd9eac356ab30fab..1fb0f99ba4c34dc1d22bed018739538c576061b5 100644 (file)
@@ -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.