From 52d7b9c0aae6d8c04b64199186ee855369ca9e89 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Mon, 15 Sep 2014 20:28:38 +0000 Subject: [PATCH] Fix the build for MSVC, it doesn't support extended sizeof git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217820 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/WinCOFFObjectWriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 90233c7c1a0..a6b7a081bdb 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -582,10 +582,10 @@ void WinCOFFObjectWriter::WriteFileHeader(const COFF::header &Header) { WriteLE32(Header.TimeDateStamp); for (uint8_t MagicChar : COFF::BigObjMagic) Write8(MagicChar); - WriteZeros(sizeof(COFF::BigObjHeader::unused1)); - WriteZeros(sizeof(COFF::BigObjHeader::unused2)); - WriteZeros(sizeof(COFF::BigObjHeader::unused3)); - WriteZeros(sizeof(COFF::BigObjHeader::unused4)); + WriteLE32(0); + WriteLE32(0); + WriteLE32(0); + WriteLE32(0); WriteLE32(Header.NumberOfSections); WriteLE32(Header.PointerToSymbolTable); WriteLE32(Header.NumberOfSymbols);