From d61e906cb9caa16d73fc6273a4dd670aecdbee3b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 29 Jan 2022 17:05:50 +0900 Subject: [PATCH] [qfcc] Don't use v6p store for assinging to entity.field Ruamoko has a native addressing mode just for entities. --- tools/qfcc/source/statements.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/statements.c b/tools/qfcc/source/statements.c index 064e25cb5..aa70b2713 100644 --- a/tools/qfcc/source/statements.c +++ b/tools/qfcc/source/statements.c @@ -964,7 +964,8 @@ dereference_dst: return sblock; } - if (is_entity (dst->type) && ofs && is_field (ofs->type)) { + if (options.code.progsversion < PROG_VERSION + && is_entity (dst->type) && ofs && is_field (ofs->type)) { // need to get a pointer type, entity.field expressions do not provide // one directly. FIXME it was probably a mistake extracting the operand // type from the statement expression in dags