# HG changeset patch # User Christian Haeubl # Date 1328987360 28800 # Node ID 2dcc9193c6f06244e1c61896e25ab25957c8a032 # Parent 333ce00358f45b2159b978793d3b3262dd90e6d8 bugfix diff -r 333ce00358f4 -r 2dcc9193c6f0 graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/IntrinsificationPhase.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/IntrinsificationPhase.java Sat Feb 11 10:30:46 2012 -0800 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/phases/IntrinsificationPhase.java Sat Feb 11 11:09:20 2012 -0800 @@ -49,7 +49,9 @@ public static void tryIntrinsify(Invoke invoke, GraalRuntime runtime) { RiResolvedMethod target = invoke.callTarget().targetMethod(); - tryIntrinsify(invoke, target, runtime); + if (target != null) { + tryIntrinsify(invoke, target, runtime); + } } public static void tryIntrinsify(Invoke invoke, RiResolvedMethod target, GraalRuntime runtime) {