From 7e147e703c9eb18ab72d20a66be361264341ec91 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 24 Jan 2022 18:31:53 +0900 Subject: [PATCH] [qfcc] Copy def reg into alias def This fixes incorrect local struct member access in Ruamoko progs. --- tools/qfcc/source/def.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index 8472e1df4..44c3d74c6 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -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; }