Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/main/java/org/jruby/ir/IRBuilder.java
Original file line number Diff line number Diff line change
@@ -1979,7 +1979,13 @@ protected LocalVariable getArgVariable(String name, int depth) {
return scope instanceof IRFor ? getLocalVariable(name, depth) : getNewLocalVariable(name, 0);
}

private void addArgReceiveInstr(Variable v, int argIndex, boolean post, int numPreReqd, int numPostRead) rece
private void addArgReceiveInstr(Variable v, int argIndex, boolean post, int numPreReqd, int numPostRead) {
if (post) {
addInstr(new ReceivePostReqdArgInstr(v, argIndex, numPreReqd, numPostRead));
} else {
addInstr(new ReceivePreReqdArgInstr(v, argIndex));
}
}

/* '_' can be seen as a variable only by its first assignment as a local variable. For any additional
* '_' we create temporary variables in the case the scope has a zsuper in it. If so, then the zsuper

0 comments on commit e56920c

Please sign in to comment.