summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-15 18:22:21 +0000
committerZachary Turner <zturner@google.com>2016-09-15 18:22:21 +0000
commita6cbfb53c23606f21e65e647e88cc153cb6f8e52 (patch)
tree6c229b7fee67c6de5baf42a9f53dccfb79a1147f /llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
parent70720a7e1b149fc22a53891711aa9ddf2d947890 (diff)
downloadbcm5719-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.cpp3
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 {
OpenPOWER on IntegriCloud