From: brian Date: Sun, 3 Jul 2005 22:26:15 +0000 (+0000) Subject: void methods are ops, others are not, this still isn't totally correct X-Git-Url: http://git.megacz.com/?p=org.ibex.classgen.git;a=commitdiff_plain;h=47f26198e94308686d5ac89daeab1a018dfb1b25 void methods are ops, others are not, this still isn't totally correct darcs-hash:20050703222615-24bed-0a3bf126a8ee792491a3422c96173782ce0c5884.gz --- diff --git a/src/org/ibex/classgen/JSSA.java b/src/org/ibex/classgen/JSSA.java index 5161a41..28e6f2b 100644 --- a/src/org/ibex/classgen/JSSA.java +++ b/src/org/ibex/classgen/JSSA.java @@ -564,8 +564,12 @@ public class JSSA extends MethodGen implements CGConst { case INVOKESTATIC: ret = new InvokeStatic(method, args); break; default: throw new Error("should never happen"); } - if(ret.getType() != Type.VOID) push(ret); - return ret; + if(ret.getType() != Type.VOID) { + push(ret); + return null; + } else { + return ret; + } } // Field Access //////////////////////////////////////////////////////////////////////////////