# HG changeset patch # User Christian Wimmer # Date 1410918861 25200 # Node ID ac687cfbed213e06447ffce3eaab7e08c1ddc6b1 # Parent 42ee7621a3fa2c1dca6281bf4f16aa6d67fa6a23 Delete temporary node diff -r 42ee7621a3fa -r ac687cfbed21 graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java --- a/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java Tue Sep 16 18:53:51 2014 -0700 +++ b/graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java Tue Sep 16 18:54:21 2014 -0700 @@ -146,7 +146,9 @@ graph.addBeforeFixed(before, fixedGuard); DummyGuardHandle handle = graph.add(DummyGuardHandle.create(fixedGuard)); fixedGuard.lower(this); - return handle.getGuard(); + GuardingNode result = handle.getGuard(); + handle.safeDelete(); + return result; } else { GuardNode newGuard = graph.unique(GuardNode.create(condition, guardAnchor, deoptReason, action, negated, Constant.NULL_OBJECT)); if (OptEliminateGuards.getValue()) {