Skip to content

Commit 38c56ab

Browse files
committed
CallInstr is always a ResultInstr.
1 parent d3e98b6 commit 38c56ab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/src/main/java/org/jruby/ir/targets/JVMVisitor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,11 +1160,7 @@ private void superCommon(String name, CallInstr instr, Operand[] args, Operand d
11601160
throw new NotCompilableException("unknown super type " + operation + " in " + instr);
11611161
}
11621162

1163-
if (instr instanceof ResultInstr) {
1164-
jvmStoreLocal(((ResultInstr) instr).getResult());
1165-
} else {
1166-
jvmAdapter().pop();
1167-
}
1163+
jvmStoreLocal(instr.getResult());
11681164
}
11691165

11701166
@Override

0 commit comments

Comments
 (0)