summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-23 21:19:11 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-23 21:19:11 +0000
commit89f4dcf5bc2a007a0b4b0391cafb3212af438870 (patch)
tree26668bfc0147e4c377286e398d42b8240b1915ef /llvm/lib/Bytecode
parent3311c8224ba9cceccf547b56b0794a4765790112 (diff)
downloadbcm5719-llvm-89f4dcf5bc2a007a0b4b0391cafb3212af438870.tar.gz
bcm5719-llvm-89f4dcf5bc2a007a0b4b0391cafb3212af438870.zip
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. llvm-svn: 8693
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Reader/ReaderWrappers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
index aa6268ee257..ecdb16d363f 100644
--- a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud