forked from OSchip/llvm-project
Allow jumping to the end of a bitstream while reading
llvm-svn: 69145
This commit is contained in:
parent
8a1dc20756
commit
0da0f22545
|
@ -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