projects
/
org.ibex.classgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e364eb7
)
void methods are ops, others are not, this still isn't totally correct
author
brian
<brian@brianweb.net>
Sun, 3 Jul 2005 22:26:15 +0000
(22:26 +0000)
committer
brian
<brian@brianweb.net>
Sun, 3 Jul 2005 22:26:15 +0000
(22:26 +0000)
darcs-hash:
20050703222615
-24bed-
0a3bf126a8ee792491a3422c96173782ce0c5884
.gz
src/org/ibex/classgen/JSSA.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/classgen/JSSA.java
b/src/org/ibex/classgen/JSSA.java
index
5161a41
..
28e6f2b
100644
(file)
--- 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");
}
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 //////////////////////////////////////////////////////////////////////////////
}
// Field Access //////////////////////////////////////////////////////////////////////////////