Skip to content

Commit

Permalink
CallInstr is always a ResultInstr.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Nov 4, 2014
1 parent d3e98b6 commit 38c56ab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Expand Up @@ -1160,11 +1160,7 @@ private void superCommon(String name, CallInstr instr, Operand[] args, Operand d
throw new NotCompilableException("unknown super type " + operation + " in " + instr);
}

if (instr instanceof ResultInstr) {
jvmStoreLocal(((ResultInstr) instr).getResult());
} else {
jvmAdapter().pop();
}
jvmStoreLocal(instr.getResult());
}

@Override
Expand Down

0 comments on commit 38c56ab

Please sign in to comment.