From 47f26198e94308686d5ac89daeab1a018dfb1b25 Mon Sep 17 00:00:00 2001 From: brian Date: Sun, 3 Jul 2005 22:26:15 +0000 Subject: [PATCH] void methods are ops, others are not, this still isn't totally correct darcs-hash:20050703222615-24bed-0a3bf126a8ee792491a3422c96173782ce0c5884.gz --- src/org/ibex/classgen/JSSA.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 ////////////////////////////////////////////////////////////////////////////// -- 1.7.10.4