From 89f4dcf5bc2a007a0b4b0391cafb3212af438870 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Tue, 23 Sep 2003 21:19:11 +0000 Subject: [PATCH] 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 --- llvm/lib/Bytecode/Reader/ReaderWrappers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp index aa6268ee257e..ecdb16d363fe 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; }