[qfcc] Copy def reg into alias def

This fixes incorrect local struct member access in Ruamoko progs.
This commit is contained in:
Bill Currie 2022-01-24 18:31:53 +09:00
parent 5cf7924352
commit 7e147e703c

View file

@ -196,6 +196,7 @@ alias_def (def_t *def, type_t *type, int offset)
alias->line = pr.source_line;
alias->file = pr.source_file;
alias->next = def->alias_defs;
alias->reg = def->reg;
def->alias_defs = alias;
return alias;
}