mirror of
https://github.com/danog/ir.git
synced 2024-11-27 04:45:38 +01:00
Fix assertion
This commit is contained in:
parent
e833a1647b
commit
bab62d42c9
@ -324,7 +324,7 @@ static void ir_sccp_remove_unreachable_merge_inputs(ir_ctx *ctx, ir_insn *_value
|
|||||||
ir_ref prev, next = IR_UNUSED, input = insn->ops[j];
|
ir_ref prev, next = IR_UNUSED, input = insn->ops[j];
|
||||||
ir_insn *next_insn = NULL, *input_insn = &ctx->ir_base[input];
|
ir_insn *next_insn = NULL, *input_insn = &ctx->ir_base[input];
|
||||||
|
|
||||||
IR_ASSERT(input_insn->op == IR_END);
|
IR_ASSERT(input_insn->op == IR_END || input_insn->op == IR_IJMP || input_insn->op == IR_UNREACHABLE);
|
||||||
prev = input_insn->op1;
|
prev = input_insn->op1;
|
||||||
use_list = &ctx->use_lists[ref];
|
use_list = &ctx->use_lists[ref];
|
||||||
for (k = 0, p = &ctx->use_edges[use_list->refs]; k < use_list->count; k++, p++) {
|
for (k = 0, p = &ctx->use_edges[use_list->refs]; k < use_list->count; k++, p++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user