mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
Allow jumping to the end of a bitstream while reading
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69145 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd9f523997
commit
37a4d8dbbb
@ -122,7 +122,7 @@ public:
|
||||
void JumpToBit(uint64_t BitNo) {
|
||||
uintptr_t ByteNo = uintptr_t(BitNo/8) & ~3;
|
||||
uintptr_t WordBitNo = uintptr_t(BitNo) & 31;
|
||||
assert(ByteNo < (uintptr_t)(LastChar-FirstChar) && "Invalid location");
|
||||
assert(ByteNo <= (uintptr_t)(LastChar-FirstChar) && "Invalid location");
|
||||
|
||||
// Move the cursor to the right word.
|
||||
NextChar = FirstChar+ByteNo;
|
||||
|
Loading…
Reference in New Issue
Block a user