mirror of
https://github.com/ziglang/zig.git
synced 2026-01-30 11:13:38 +00:00
stage1: Resolve some constants to u32, not usize
The latter may be smaller than a u32, use a u32 explicitly.
This commit is contained in:
parent
6f220bb7ca
commit
2f4f7ace7a
@ -26901,7 +26901,7 @@ static IrInstGen *ir_analyze_instruction_set_eval_branch_quota(IrAnalyze *ira,
|
||||
IrInstSrcSetEvalBranchQuota *instruction)
|
||||
{
|
||||
uint64_t new_quota;
|
||||
if (!ir_resolve_usize(ira, instruction->new_quota->child, &new_quota))
|
||||
if (!ir_resolve_unsigned(ira, instruction->new_quota->child, ira->codegen->builtin_types.entry_u32, &new_quota))
|
||||
return ira->codegen->invalid_inst_gen;
|
||||
|
||||
if (new_quota > *ira->new_irb.exec->backward_branch_quota) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user