Mercurial > hg > truffle
changeset 11624:3c2dc8364696
CheckCastNode.canonical should not assume that tool.assumptions is not null
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 11 Sep 2013 10:36:09 +0200 |
parents | 5d6ff483a5e9 |
children | 94a28e1b2c86 |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/CheckCastNode.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/CheckCastNode.java Wed Sep 11 10:21:51 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/CheckCastNode.java Wed Sep 11 10:36:09 2013 +0200 @@ -159,7 +159,7 @@ if (ObjectStamp.isObjectAlwaysNull(object())) { return object(); } - if (tool.assumptions().useOptimisticAssumptions()) { + if (tool.assumptions() != null && tool.assumptions().useOptimisticAssumptions()) { ResolvedJavaType exactType = type.findUniqueConcreteSubtype(); if (exactType != null && exactType != type) { // Propagate more precise type information to usages of the checkcast.