From 7418cb0ec6cbbf7821fa6a17eda79e159d91a841 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Wed, 11 Feb 2015 22:51:55 +0000 Subject: [PATCH] Unbreak buildbots The next offset should be updated as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228883 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/WinCOFFObjectWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index ce6dcfda8ff..c519a9d6d5e 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -940,7 +940,8 @@ void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm, if (IsPhysicalSection(Sec)) { // Align the section data to a four byte boundary. - Sec->Header.PointerToRawData = RoundUpToAlignment(offset, 4); + offset = RoundUpToAlignment(offset, 4); + Sec->Header.PointerToRawData = offset; offset += Sec->Header.SizeOfRawData; }