commit aa0352fad6d8230ab2d8d71c024429faa54144d2 (tree)
parent b98a753b52ce293e97d0f708b077702cf7024ac4
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 8 May 2021 14:06:36 -0700
Sema: fix `@setEvalBranchQuota` incorrectly requiring a function body
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/Sema.zig b/src/Sema.zig
@@ -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;