mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
Fix PR12089
http://llvm.org/bugs/show_bug.cgi?id=12089 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4328f9f174
commit
cd4f803ac1
@ -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…
x
Reference in New Issue
Block a user