Mercurial > hg > graal-compiler
changeset 10712:7f50d79c46f2
fixed a stamp join to be done the "right" way (stamp joining is not currently commutative)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 11 Jul 2013 20:57:58 +0200 |
parents | 68d4d5457546 |
children | 057154505878 |
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 Thu Jul 11 20:56:18 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/CheckCastNode.java Thu Jul 11 20:57:58 2013 +0200 @@ -95,7 +95,7 @@ @Override public void lower(LoweringTool tool, LoweringType loweringType) { InstanceOfNode typeTest = graph().add(new InstanceOfNode(type, object, profile)); - Stamp stamp = object.stamp().join(StampFactory.declared(type)); + Stamp stamp = StampFactory.declared(type).join(object.stamp()); ValueNode condition; if (stamp == null) { // This is a check cast that will always fail