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
diff --git a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
index aa6268e..ecdb16d 100644
--- a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
+++ b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
@@ -106,7 +106,7 @@
     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;
   }