diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-11-08 19:52:32 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-11-08 19:52:32 +0000 |
commit | 0d64632c9e8a2632b8804bcc3fbc3523588862a7 (patch) | |
tree | 82d82684262582a1c2667bfec4ad0937aa360e4d /lib/MC/WinCOFFObjectWriter.cpp | |
parent | 2d76a7846200fcbe518e6f73291a6cbda8864ea0 (diff) |
MC/COFF: Correctly emit the size of an empty string table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r-- | lib/MC/WinCOFFObjectWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index b15e225fc2..4d3b59c92a 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -281,6 +281,7 @@ StringTable::StringTable() { // The string table data begins with the length of the entire string table // including the length header. Allocate space for this header. Data.resize(4); + update_length(); } size_t StringTable::size() const { |