Skip to content

Commit

Permalink
Intellij autosave is great until you accidentally hit a key right bef…
Browse files Browse the repository at this point in the history
…ore you commit
  • Loading branch information
enebo committed Nov 28, 2016
1 parent 61063db commit e56920c
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
Expand Up @@ -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
Expand Down

0 comments on commit e56920c

Please sign in to comment.