Mercurial > hg > truffle
changeset 17137:ac687cfbed21
Delete temporary node
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 16 Sep 2014 18:54:21 -0700 |
parents | 42ee7621a3fa |
children | de926488f244 |
files | graal/com.oracle.graal.phases.common/src/com/oracle/graal/phases/common/LoweringPhase.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()) {