Just in case.
This commit is contained in:
parent
fc9f9d9a60
commit
ff2c00e220
|
@ -1789,6 +1789,7 @@ Value* HIRBuilder::CountLeadingZeros(Value* value) {
|
||||||
const static uint8_t zeros[] = {
|
const static uint8_t zeros[] = {
|
||||||
8, 16, 32, 64,
|
8, 16, 32, 64,
|
||||||
};
|
};
|
||||||
|
assert_true(value->type <= INT64_TYPE);
|
||||||
return LoadConstant(zeros[value->type]);
|
return LoadConstant(zeros[value->type]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue