mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +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->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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue