Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java @ 20990:e6b59c7b3991
Truffle-DSL: fixed invalid types compares. they do not work in javac.
author | Christian Humer <christian.humer@oracle.com> |
---|---|
date | Thu, 16 Apr 2015 14:43:13 +0200 |
parents | 18c0f02fa4d2 |
children | 8e5f9310f3aa |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java Thu Apr 16 13:51:50 2015 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeSystemData.java Thu Apr 16 14:43:13 2015 +0200 @@ -134,7 +134,7 @@ return null; } for (ImplicitCastData cast : getImplicitCasts()) { - if (cast.getSourceType().equals(sourceType) && cast.getTargetType().equals(targetType)) { + if (ElementUtils.typeEquals(cast.getSourceType(), sourceType) && ElementUtils.typeEquals(cast.getTargetType(), targetType)) { return cast; } }