Skip to content

Commit

Permalink
in some helper instrs I changed StringLiteral to Symbol since they re…
Browse files Browse the repository at this point in the history
…ally were

symbols.  Changing JVMVisitor to Stringable in a cast fixes one JIT failure
in my recent commit bombing.
  • Loading branch information
enebo committed Apr 15, 2018
1 parent b8195a2 commit 6900362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Expand Up @@ -1983,7 +1983,7 @@ public void RuntimeHelperCall(RuntimeHelperCall runtimehelpercall) {
jvmMethod().loadContext();
jvmMethod().loadSelf();
visit(runtimehelpercall.getArgs()[0]);
jvmAdapter().ldc(((StringLiteral) runtimehelpercall.getArgs()[1]).getString());
jvmAdapter().ldc(((Stringable) runtimehelpercall.getArgs()[1]).getString());
visit(runtimehelpercall.getArgs()[2]);
jvmAdapter().invokestatic(p(IRRuntimeHelpers.class), "isDefinedCall", sig(IRubyObject.class, ThreadContext.class, IRubyObject.class, IRubyObject.class, String.class, IRubyObject.class));
jvmStoreLocal(runtimehelpercall.getResult());
Expand Down

0 comments on commit 6900362

Please sign in to comment.