# HG changeset patch # User Christian Wimmer # Date 1367435161 25200 # Node ID e577da5a49f2eba49e42d324eff93d13161e49fe # Parent 37345671860c0741c4a717516fb813cfc11869d4 Pass Assumptions to CanonicalizerPhase to avoid NullPointerException diff -r 37345671860c -r e577da5a49f2 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/EliminateNestedCheckCastsTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/EliminateNestedCheckCastsTest.java Wed May 01 11:29:19 2013 -0700 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/EliminateNestedCheckCastsTest.java Wed May 01 12:06:01 2013 -0700 @@ -28,6 +28,7 @@ import org.junit.*; +import com.oracle.graal.api.code.*; import com.oracle.graal.debug.*; import com.oracle.graal.nodes.*; import com.oracle.graal.nodes.java.*; @@ -71,7 +72,7 @@ public StructuredGraph call() throws Exception { StructuredGraph graph = parse(snippet); Assert.assertEquals(checkcasts, graph.getNodes().filter(CheckCastNode.class).count()); - new CanonicalizerPhase.Instance(runtime(), null).apply(graph); + new CanonicalizerPhase.Instance(runtime(), new Assumptions(false)).apply(graph); Assert.assertEquals(afterCanon, graph.getNodes(CheckCastNode.class).count()); return graph; }