Fix PR12089

http://llvm.org/bugs/show_bug.cgi?id=12089

llvm-svn: 151550
This commit is contained in:
Derek Schuff 2012-02-27 20:31:47 +00:00
parent afa84ae85b
commit e932a68575
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ private:
bool fetchToPos(size_t Pos) {
if (EOFReached) return Pos < ObjectSize;
while (Pos >= BytesRead) {
Bytes.resize(BytesRead + kChunkSize);
Bytes.resize(BytesRead + BytesSkipped + kChunkSize);
size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped],
kChunkSize);
BytesRead += bytes;