From ab2b25bc97a3918e9dfa21a23ece09efcc84972d Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Wed, 11 Feb 2015 22:51:55 +0000 Subject: Unbreak buildbots The next offset should be updated as well. llvm-svn: 228883 --- llvm/lib/MC/WinCOFFObjectWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp index ce6dcfda8ff..c519a9d6d5e 100644 --- a/llvm/lib/MC/WinCOFFObjectWriter.cpp +++ b/llvm/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; } -- cgit v1.2.3