mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 03:25:01 +00:00
Sema: fix @setEvalBranchQuota incorrectly requiring a function body
This commit is contained in:
parent
b98a753b52
commit
aa0352fad6
@ -1386,7 +1386,6 @@ fn zirStoreToInferredPtr(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index)
|
||||
fn zirSetEvalBranchQuota(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) InnerError!void {
|
||||
const inst_data = sema.code.instructions.items(.data)[inst].un_node;
|
||||
const src = inst_data.src();
|
||||
try sema.requireFunctionBlock(block, src);
|
||||
const quota = try sema.resolveAlreadyCoercedInt(block, src, inst_data.operand, u32);
|
||||
if (sema.branch_quota < quota)
|
||||
sema.branch_quota = quota;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user