authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-08 14:06:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-08 14:06:36-07:00
logaa0352fad6d8230ab2d8d71c024429faa54144d2
tree549cd79c6e5924754b349e4e3ea39dcb068831f3
parentb98a753b52ce293e97d0f708b077702cf7024ac4

Sema: fix `@setEvalBranchQuota` incorrectly requiring a function body


1 files changed, 0 insertions(+), 1 deletions(-)

src/Sema.zig-1
...@@ -1386,7 +1386,6 @@ fn zirStoreToInferredPtr(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index)...@@ -1386,7 +1386,6 @@ fn zirStoreToInferredPtr(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index)
1386fn zirSetEvalBranchQuota(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) InnerError!void {1386fn zirSetEvalBranchQuota(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) InnerError!void {
1387 const inst_data = sema.code.instructions.items(.data)[inst].un_node;1387 const inst_data = sema.code.instructions.items(.data)[inst].un_node;
1388 const src = inst_data.src();1388 const src = inst_data.src();
1389 try sema.requireFunctionBlock(block, src);
1390 const quota = try sema.resolveAlreadyCoercedInt(block, src, inst_data.operand, u32);1389 const quota = try sema.resolveAlreadyCoercedInt(block, src, inst_data.operand, u32);
1391 if (sema.branch_quota < quota)1390 if (sema.branch_quota < quota)
1392 sema.branch_quota = quota;1391 sema.branch_quota = quota;