projects
/
org.ibex.classgen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
void methods are ops, others are not, this still isn't totally correct
[org.ibex.classgen.git]
/
src
/
org
/
ibex
/
classgen
/
JSSA.java
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 //////////////////////////////////////////////////////////////////////////////