[qfcc] Mark ptr assignment offset as an operand

This fixes structptr. All current tests pass.
This commit is contained in:
Bill Currie 2020-03-17 23:05:57 +09:00
parent 578bf9a16f
commit 22cd39c853

View file

@ -1137,6 +1137,7 @@ flow_analyze_statement (statement_t *s, set_t *use, set_t *def, set_t *kill,
} else if (!strcmp (s->opcode, ".=")) { } else if (!strcmp (s->opcode, ".=")) {
flow_add_op_var (use, s->opc, 1); flow_add_op_var (use, s->opc, 1);
res_op = flow_analyze_pointer_operand (s->opb, def); res_op = flow_analyze_pointer_operand (s->opb, def);
aux_op1 = s->opc;
} else { } else {
internal_error (s->expr, "unexpected opcode '%s' for %d", internal_error (s->expr, "unexpected opcode '%s' for %d",
s->opcode, s->type); s->opcode, s->type);