Skip to content

Commit 6900362

Browse files
committedApr 15, 2018
in some helper instrs I changed StringLiteral to Symbol since they really were
symbols. Changing JVMVisitor to Stringable in a cast fixes one JIT failure in my recent commit bombing.
1 parent b8195a2 commit 6900362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎core/src/main/java/org/jruby/ir/targets/JVMVisitor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ public void RuntimeHelperCall(RuntimeHelperCall runtimehelpercall) {
19831983
jvmMethod().loadContext();
19841984
jvmMethod().loadSelf();
19851985
visit(runtimehelpercall.getArgs()[0]);
1986-
jvmAdapter().ldc(((StringLiteral) runtimehelpercall.getArgs()[1]).getString());
1986+
jvmAdapter().ldc(((Stringable) runtimehelpercall.getArgs()[1]).getString());
19871987
visit(runtimehelpercall.getArgs()[2]);
19881988
jvmAdapter().invokestatic(p(IRRuntimeHelpers.class), "isDefinedCall", sig(IRubyObject.class, ThreadContext.class, IRubyObject.class, IRubyObject.class, String.class, IRubyObject.class));
19891989
jvmStoreLocal(runtimehelpercall.getResult());

0 commit comments

Comments
 (0)