diff options
| author | Zachary Turner <zturner@google.com> | 2016-09-15 18:22:21 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-09-15 18:22:21 +0000 |
| commit | a6cbfb53c23606f21e65e647e88cc153cb6f8e52 (patch) | |
| tree | 6c229b7fee67c6de5baf42a9f53dccfb79a1147f /llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp | |
| parent | 70720a7e1b149fc22a53891711aa9ddf2d947890 (diff) | |
| download | bcm5719-llvm-a6cbfb53c23606f21e65e647e88cc153cb6f8e52.tar.gz bcm5719-llvm-a6cbfb53c23606f21e65e647e88cc153cb6f8e52.zip | |
[pdb] Fix the TPI stream size computation.
We were inadvertently adding the size of the hash value stream to
the size of the TPI stream, even though the hash value stream is
an entirely separate stream.
llvm-svn: 281636
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp index ee9e89bbe59..aa059387f6b 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp @@ -64,8 +64,7 @@ Error TpiStreamBuilder::finalize() { } uint32_t TpiStreamBuilder::calculateSerializedLength() const { - return sizeof(TpiStreamHeader) + TypeRecordStream.getLength() + - calculateHashBufferSize(); + return sizeof(TpiStreamHeader) + TypeRecordStream.getLength(); } uint32_t TpiStreamBuilder::calculateHashBufferSize() const { |

