[qfcc] Remove alias offset from initialize_def

I'm not sure which is mysterious: why it's there, or why it did nothing.
Since it does nothing and things are working, it should be safe to
remove.
This commit is contained in:
Bill Currie 2022-03-31 01:15:59 +09:00
parent 3479897224
commit 12300d9a98

View file

@ -605,15 +605,11 @@ initialize_def (symbol_t *sym, expr_t *init, defspace_t *space,
// fold_constants takes care of int/float conversions
append_expr (local_expr, fold_constants (init));
} else {
int offset = 0;
if (!is_constant (init)) {
error (init, "non-constant initializier");
return;
}
while (init->type == ex_alias) {
if (init->e.alias.offset) {
offset += expr_int (init->e.alias.offset);
}
init = init->e.alias.expr;
}
if (init->type != ex_value) { //FIXME enum etc