diff graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConvertDeoptimizeToGuardPhase.java @ 11335:ccbbb7dbca69

Make sure the created ProxyNode is of PhiType.Guard.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 16 Aug 2013 21:40:42 +0200
parents a07d9113d1f6
children a268b0de65d6
line wrap: on
line diff
--- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConvertDeoptimizeToGuardPhase.java	Fri Aug 16 21:23:30 2013 +0200
+++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/ConvertDeoptimizeToGuardPhase.java	Fri Aug 16 21:40:42 2013 +0200
@@ -94,7 +94,7 @@
                     // Rewire to the fixed guard.
                     if (survivingSuccessor instanceof LoopExitNode) {
                         if (proxyGuard == null) {
-                            proxyGuard = ProxyNode.forValue(guard, survivingSuccessor, graph);
+                            proxyGuard = ProxyNode.forGuard(guard, survivingSuccessor, graph);
                         }
                         n.replaceFirstInput(survivingSuccessor, proxyGuard);
                     } else {