Skip to content

Commit

Permalink
Blast. Another ensure + nested scope bug with stabby bastard. Series …
Browse files Browse the repository at this point in the history
…of specs coming later for all scope types
  • Loading branch information
enebo committed Nov 5, 2014
1 parent 0817f78 commit eb95b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/IRBuilder.java
Expand Up @@ -523,7 +523,7 @@ public Operand buildLambda(LambdaNode node, IRScope s) {
// can be U_NIL if the node is an if node with returns in both branches.
if (closureRetVal != U_NIL) closureBuilder.addInstr(closure, new ReturnInstr(closureRetVal));

handleBreakAndReturnsInLambdas(closure);
closureBuilder.handleBreakAndReturnsInLambdas(closure);

Variable lambda = s.createTemporaryVariable();
WrappedIRClosure lambdaBody = new WrappedIRClosure(closure.getSelf(), closure);
Expand Down

0 comments on commit eb95b6e

Please sign in to comment.