Mercurial > hg > CbC > old > device
diff mc-codegen.c @ 469:cf1c2c42b7c8
fix iassop
author | kono |
---|---|
date | Sat, 30 Jul 2005 20:54:40 +0900 |
parents | 464e7480395c |
children | cc5ea30efe0c |
line wrap: on
line diff
--- a/mc-codegen.c Sat Jul 30 16:22:00 2005 +0900 +++ b/mc-codegen.c Sat Jul 30 20:54:40 2005 +0900 @@ -2200,7 +2200,8 @@ /* *new = *new op e3 */ n = list3(LVAR,new_lvar(size_of_int),0); g_expr_u(assign_expr0(n,list2(ADDRESS,e2),INT,INT)); - g_expr(assign_expr0(list2(INDIRECT,n),list3(op,n,e3),t,t)); + g_expr(assign_expr0(rvalue_t(n,INT), + list3(op,rvalue_t(list2(INDIRECT,rvalue_t(n,INT)),t),e3),t,t)); free_lvar(cadr(n)); return; }