[qfcc] Skip recording defs for binary expressions

For now, anyway, as the generated code looks good. There might be
problems with actual pointer expressions, but it allows entity.field to
work as expected rather than generate an ICE.
This commit is contained in:
Bill Currie 2022-09-13 21:31:54 +09:00
parent c771bfa58c
commit 47ac7b924f

View file

@ -1238,6 +1238,8 @@ find_def_operand (expr_t *ref)
expr_symbol (0, ref, &op);
} else if (ref->type == ex_def) {
expr_def (0, ref, &op);
} else if (ref->type == ex_expr) {
debug (ref, "unexpected expr type: %s", expr_names[ref->type]);
} else {
internal_error (ref, "unexpected expr type: %s",
expr_names[ref->type]);