cvsuser 04/11/21 23:52:39
Modified: imcc pcc.c
Log:
Fixed test failure; was emitting "invoke P1" instead of "returncc" if no
explicit return was present.
Revision Changes Path
1.78 +1 -1 parrot/imcc/pcc.c
Index: pcc.c
===================================================================
RCS file: /cvs/public/parrot/imcc/pcc.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -r1.77 -r1.78
--- pcc.c 18 Nov 2004 08:16:47 -0000 1.77
+++ pcc.c 22 Nov 2004 07:52:38 -0000 1.78
@@ -488,7 +488,7 @@
regs[0] = sub->pcc_sub->cc_sym;
else
regs[0] = get_pasm_reg("P1");
- tmp = INS(interpreter, unit, "invoke", NULL, regs, 1, 0, 0);
+ tmp = INS(interpreter, unit, "returncc", NULL, regs, 0, 0, 0);
}
debug(interpreter, DEBUG_IMC, "add sub ret - %I\n", tmp);
insert_ins(unit, unit->last_ins, tmp);