diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-23 21:19:11 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-23 21:19:11 +0000 |
commit | 4dcbd5e9a25dc5484462a6b001db9813270c8de4 (patch) | |
tree | 8e942167e903477e3c7fffb0886313384f399c76 /lib/Bytecode/Reader/ReaderWrappers.cpp | |
parent | 76602528ec7de476452c5b0f7a3314bd3d0577b8 (diff) | |
download | external_llvm-4dcbd5e9a25dc5484462a6b001db9813270c8de4.zip external_llvm-4dcbd5e9a25dc5484462a6b001db9813270c8de4.tar.gz external_llvm-4dcbd5e9a25dc5484462a6b001db9813270c8de4.tar.bz2 |
Added code that ensures that we pass the beginning of the data buffer to
the parsing routines regardless of whether the buffer is re-aligned or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ReaderWrappers.cpp')
-rw-r--r-- | lib/Bytecode/Reader/ReaderWrappers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/ReaderWrappers.cpp b/lib/Bytecode/Reader/ReaderWrappers.cpp index aa6268e..ecdb16d 100644 --- a/lib/Bytecode/Reader/ReaderWrappers.cpp +++ b/lib/Bytecode/Reader/ReaderWrappers.cpp @@ -106,7 +106,7 @@ BytecodeBufferReader::BytecodeBufferReader(const unsigned char *Buf, MustDelete = true; } else { // If we don't need to copy it over, just use the caller's copy - Buffer = Buf; + ParseBegin = Buffer = Buf; Length = Len; MustDelete = false; } |