OSDN Git Service

Fix a bug in MappedBlockStream.
authorZachary Turner <zturner@google.com>
Thu, 25 May 2017 21:12:00 +0000 (21:12 +0000)
committerZachary Turner <zturner@google.com>
Thu, 25 May 2017 21:12:00 +0000 (21:12 +0000)
commit63d6d7548d9edf129ea79cc6a04fb601510c7684
treefa87b27a32c6088d6ea9cf8ddeaff047f2e623cf
parentd4b1dbe69def07ab97fbd665bd0230c2a40a371f
Fix a bug in MappedBlockStream.

It was using the number of blocks of the entire PDB file as the number
of blocks of each stream that was created.  This was only an issue in
the readLongestContiguousChunk function, which  was never called prior.
This bug surfaced when I updated an algorithm to use this function and
the algorithm broke.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303916 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/MSF/MappedBlockStream.h
lib/DebugInfo/MSF/MappedBlockStream.cpp
unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp