diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-04-13 16:53:53 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-04-13 16:55:59 -0400 |
| commit | 68d7e4a1b60a52b59bc148a81458a89b9b739ab1 (patch) | |
| tree | db7f34838133a838c19634c8870c78ef154ca306 /src/ir.hpp | |
| parent | a43fd7a550c3cae7443f09e4294cfccb6bdf0320 (diff) | |
| download | zig-68d7e4a1b60a52b59bc148a81458a89b9b739ab1.tar.gz zig-68d7e4a1b60a52b59bc148a81458a89b9b739ab1.zip | |
better handle quota of setEvalBranchQuota
Now that c58b80203443dcbf8b737ebdaa1f17fb20c77711 has removed
the "top of the comptime stack" requirement, the branch quota
can be modified somewhere other than the top of the comptime stack.
This means that the quota of a parent IrExecutable has to be
modifiable by an instruction in the child.
Closes #2261
Diffstat (limited to 'src/ir.hpp')
| -rw-r--r-- | src/ir.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.hpp b/src/ir.hpp index 0b85ad2c55..4fb7552212 100644 --- a/src/ir.hpp +++ b/src/ir.hpp @@ -14,7 +14,7 @@ bool ir_gen(CodeGen *g, AstNode *node, Scope *scope, IrExecutable *ir_executable bool ir_gen_fn(CodeGen *g, ZigFn *fn_entry); ConstExprValue *ir_eval_const_value(CodeGen *codegen, Scope *scope, AstNode *node, - ZigType *expected_type, size_t *backward_branch_count, size_t backward_branch_quota, + ZigType *expected_type, size_t *backward_branch_count, size_t *backward_branch_quota, ZigFn *fn_entry, Buf *c_import_buf, AstNode *source_node, Buf *exec_name, IrExecutable *parent_exec, AstNode *expected_type_source_node); |
