Mercurial > hg > truffle
changeset 5835:717de5468bf3
Additional fix in read canonicalization
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 13 Jul 2012 15:51:38 +0200 |
parents | 2b786c82e329 |
children | 27ae0d45fd8a |
files | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ReadNode.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/extended/ReadNode.java Fri Jul 13 15:41:01 2012 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ReadNode.java Fri Jul 13 15:51:38 2012 +0200 @@ -51,7 +51,7 @@ if (read.location().locationIdentity() == LocationNode.FINAL_LOCATION && read.location().getClass() == LocationNode.class) { Object value = read.object().asConstant().asObject(); long displacement = read.location().displacement(); - Kind kind = read.location().kind(); + Kind kind = read.location().getValueKind(); Constant constant = kind.readUnsafeConstant(value, displacement); if (constant != null) { return ConstantNode.forConstant(constant, runtime, read.node().graph());