Skip to content

Commit

Permalink
unuse_reg(rhs) is invoked later. Should never be done before the usag…
Browse files Browse the repository at this point in the history
…e of a reg.
  • Loading branch information
kjs committed Jun 14, 2012
1 parent d86e4a3 commit 5117a8d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gencode.c
Expand Up @@ -306,8 +306,6 @@ gencode_assign(M1_compiler *comp, NOTNULL(m1_assignment *a)) {
assert (obj_reg_count == 1 || obj_reg_count == 2);

if (obj_reg_count == 1) { /* just a simple lvalue. */
/* unuse the old rhs reg */
unuse_reg(comp, rhs);

lhs = popreg(comp->regstack);

Expand Down

0 comments on commit 5117a8d

Please sign in to comment.