aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-30 17:05:33 +0800
committerTeddy <[email protected]>2014-04-30 17:05:33 +0800
commit6806fa4ff4a896f56fa69c37b9e45c6347cedf54 (patch)
tree22f94e65de426a4a9f61c8366f775552487900bb
parent73cb3efaaf6178aecec442629c373be129d10716 (diff)
adjusted push scheme
-rw-r--r--ssa.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ssa.c b/ssa.c
index e5d9d91..f38bf63 100644
--- a/ssa.c
+++ b/ssa.c
@@ -362,7 +362,7 @@ COpr_t ssa_postfix(CNode *p, CBlock_t cur, CInst_t lval, CBlock_t succ) {
case POSTFIX_CALL:
{
CNode *arg = post->chd->chd;
- CInst_t ps = NULL, t;
+ /* CInst_t ps = NULL, t; */
base->op = CALL;
base->src1 = ssa_exp_(p->chd, cur, lval, succ);
base->src2 = NULL;
@@ -376,14 +376,16 @@ COpr_t ssa_postfix(CNode *p, CBlock_t cur, CInst_t lval, CBlock_t succ) {
pi->src1 = ssa_exp_(arg, cur, lval, succ);
pi->src2 = NULL;
pi->dest = NULL;
- pi->next = ps;
- ps = pi;
+ /* pi->next = ps;
+ ps = pi; */
+ cblock_append(cur, pi);
}
+ /*
for (; ps; ps = t)
{
t = ps->next;
cblock_append(cur, ps);
- }
+ } */
}
break;
default: