[qfcc] Don't add target def for store statements

Store statements dereference the pointer in target and thus don't modify
target itself.
This commit is contained in:
Bill Currie 2023-06-04 11:45:35 +09:00
parent e2c1da9b6a
commit 8f6e145257

View file

@ -971,8 +971,10 @@ dereference_dst:
s->opa = dst; s->opa = dst;
s->opb = ofs; s->opb = ofs;
s->opc = src; s->opc = src;
statement_add_def (s, copy_operand (target)); if (type != st_ptrassign) {
statement_add_kill (s, target); statement_add_def (s, copy_operand (target));
statement_add_kill (s, target);
}
sblock_add_statement (sblock, s); sblock_add_statement (sblock, s);
return sblock; return sblock;
} }