Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Original file line number Diff line number Diff line change
@@ -173,7 +173,7 @@ public void emitScope(IRScope scope, String name, Signature signature, boolean s
}

// ensure there's at least one instr per block
m.adapter.nop();
if (bb.getInstrs().size() == 0) m.adapter.nop();

// visit remaining instrs
for (Instr instr : bb.getInstrs()) {
@@ -1566,8 +1566,7 @@ public void ReceiveRestArgInstr(ReceiveRestArgInstr instr) {

@Override
public void ReceiveSelfInstr(ReceiveSelfInstr receiveselfinstr) {
jvmMethod().loadSelf();
jvmStoreLocal(receiveselfinstr.getResult());
// noop...self is passed in
}

@Override

0 comments on commit 71633ac

Please sign in to comment.