mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Fix PR12089
http://llvm.org/bugs/show_bug.cgi?id=12089 llvm-svn: 151550
This commit is contained in:
parent
200acf8e6e
commit
999fd3acef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user