Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java @ 7754:3cec97eb3b5f
Minor cleanup.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Feb 2013 10:41:02 +0100 |
parents | 388848bbe03d |
children | b891ec348f8a |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java Mon Feb 11 10:40:52 2013 +0100 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/node/NodeData.java Mon Feb 11 10:41:02 2013 +0100 @@ -128,7 +128,9 @@ public ExecutableTypeData findGenericExecutableType(ProcessorContext context) { List<ExecutableTypeData> types = findGenericExecutableTypes(context); - if (types.size() == 1) { + if (types.isEmpty()) { + return null; + } else if (types.size() == 1) { return types.get(0); } else if (types.size() == 2) { if (types.get(0).getType().isVoid()) {