forked from OSchip/llvm-project
[WASM] Remove an assertion that can never fire.
uint* is by definition always >=0. llvm-svn: 299311
This commit is contained in:
parent
c88169e61b
commit
543760218a
|
@ -100,7 +100,7 @@ static int8_t readVarint7(const uint8_t *&Ptr) {
|
|||
|
||||
static uint8_t readVaruint7(const uint8_t *&Ptr) {
|
||||
uint64_t result = readULEB128(Ptr);
|
||||
assert(result <= VARUINT7_MAX && result >= 0);
|
||||
assert(result <= VARUINT7_MAX);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@ static int32_t readVarint32(const uint8_t *&Ptr) {
|
|||
|
||||
static uint32_t readVaruint32(const uint8_t *&Ptr) {
|
||||
uint64_t result = readULEB128(Ptr);
|
||||
assert(result <= UINT32_MAX && result >= 0);
|
||||
assert(result <= UINT32_MAX);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue