forked from OSchip/llvm-project
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
This commit is contained in:
parent
3311c8224b
commit
89f4dcf5bc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue