mirror of
https://github.com/danog/ir.git
synced 2025-01-22 05:31:32 +01:00
ir_init: Expose min limit for constants and instructions
Signed-off-by: Anatol Belski <ab@php.net>
This commit is contained in:
parent
f55b9b094b
commit
b701684704
4
ir.c
4
ir.c
@ -286,8 +286,8 @@ void ir_init(ir_ctx *ctx, ir_ref consts_limit, ir_ref insns_limit)
|
||||
{
|
||||
ir_insn *buf;
|
||||
|
||||
IR_ASSERT(consts_limit >= -(IR_TRUE - 1));
|
||||
IR_ASSERT(insns_limit >= IR_UNUSED + 1);
|
||||
IR_ASSERT(consts_limit >= IR_CONSTS_LIMIT_MIN);
|
||||
IR_ASSERT(insns_limit >= IR_INSNS_LIMIT_MIN);
|
||||
|
||||
ctx->insns_count = IR_UNUSED + 1;
|
||||
ctx->insns_limit = insns_limit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user