Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethodParser.java @ 8314:2be3865d9ea0
Fixed minor bug for implicit parameters in sourcegen.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Sat, 16 Mar 2013 15:53:04 +0100 |
parents | 89006c76f737 |
children | 8a1115c92271 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethodParser.java Sat Mar 16 15:52:40 2013 +0100 +++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethodParser.java Sat Mar 16 15:53:04 2013 +0100 @@ -210,7 +210,7 @@ int specificationParameterIndex = 0; List<ActualParameter> resolvedParameters = new ArrayList<>(); - while (parameter != null || specification != null) { + while (parameter != null || specification != null || implicitParameter != null) { if (parameter == null || specification == null) { if (specification != null && (specification.isOptional() || specification.getCardinality() == Cardinality.MULTIPLE)) { specification = specificationIterator.hasNext() ? specificationIterator.next() : null;