mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 16:07:49 +00:00
Allow jumping to the end of a bitstream while reading
llvm-svn: 69145
This commit is contained in:
parent
4153589196
commit
8965c485d7
@ -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…
x
Reference in New Issue
Block a user