mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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:
parent
e2c1da9b6a
commit
8f6e145257
1 changed files with 4 additions and 2 deletions
|
@ -971,8 +971,10 @@ dereference_dst:
|
|||
s->opa = dst;
|
||||
s->opb = ofs;
|
||||
s->opc = src;
|
||||
statement_add_def (s, copy_operand (target));
|
||||
statement_add_kill (s, target);
|
||||
if (type != st_ptrassign) {
|
||||
statement_add_def (s, copy_operand (target));
|
||||
statement_add_kill (s, target);
|
||||
}
|
||||
sblock_add_statement (sblock, s);
|
||||
return sblock;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue