Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ast
Original file line number Diff line number Diff line change
@@ -193,7 +193,7 @@ def ir_setup(root)

builder = org.jruby.ir.IRBuilder

scope = builder.new(manager).build_root(root)
scope = builder.build_root(manager, root)
passes = manager.get_compiler_passes(scope)
[scope, passes]
end
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/ir/IRScope.java
Original file line number Diff line number Diff line change
@@ -239,6 +239,7 @@ public boolean equals(Object other) {
}

protected void addChildScope(IRScope scope) {
if (lexicalChildren == null) lexicalChildren = new ArrayList<>();
lexicalChildren.add(scope);
}

0 comments on commit 7b7df13

Please sign in to comment.