Skip to content
Permalink
Browse files
Whoop forgot to remove import
  • Loading branch information
enebo committed Nov 4, 2014
1 parent f0cd104 commit d3e98b67e1e5789bf35140b78d64631aa05a9646
Showing 1 changed file with 1 addition and 4 deletions.
@@ -6,7 +6,6 @@
import org.jruby.ir.instructions.*;
import org.jruby.ir.operands.Label;
import org.jruby.ir.operands.Operand;
import org.jruby.ir.operands.OperandType;
import org.jruby.ir.operands.Variable;
import org.jruby.ir.operands.WrappedIRClosure;
import org.jruby.ir.transformations.inlining.CloneInfo;
@@ -515,9 +514,7 @@ private void removeNestedScopesFromBB(BasicBlock bb) {
for (Instr instr: bb.getInstrs()) {
for (Operand oper: instr.getOperands()) {
if (oper instanceof WrappedIRClosure) {
WrappedIRClosure closure = (WrappedIRClosure) oper;

scope.removeClosure(closure.getClosure());
scope.removeClosure(((WrappedIRClosure) oper).getClosure());
break; // Only one WrappedIRClosure possible per instr
}
}

0 comments on commit d3e98b6

Please sign in to comment.