projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4328f9f
)
Fix PR12089
author
Derek Schuff
<dschuff@google.com>
Mon, 27 Feb 2012 20:31:47 +0000
(20:31 +0000)
committer
Derek Schuff
<dschuff@google.com>
Mon, 27 Feb 2012 20:31:47 +0000
(20:31 +0000)
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
include/llvm/Support/StreamableMemoryObject.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/StreamableMemoryObject.h
b/include/llvm/Support/StreamableMemoryObject.h
index c73e03a3f7a0b3356dea416aa73423af61f04305..ab480864d0f51fe78533987f7eba36f009dec4ac 100644
(file)
--- a/
include/llvm/Support/StreamableMemoryObject.h
+++ b/
include/llvm/Support/StreamableMemoryObject.h
@@
-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;