[qfcc] Handle convert symbols when processing

I'm pretty sure I don't want this getting into the target code, so
handling it early (like in the immediate processing path) seems good.
This commit is contained in:
Bill Currie 2024-11-21 17:24:51 +09:00
parent c3bbd85857
commit cfc5e0b5fd

View file

@ -218,6 +218,9 @@ proc_symbol (const expr_t *expr)
auto sym = symtab_lookup (current_symtab, expr->symbol->name);
if (sym) {
scoped_src_loc (expr);
if (sym->sy_type == sy_convert) {
return sym->convert.conv (sym, sym->convert.data);
}
expr = new_symbol_expr (sym);
}
return expr;