diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index fd40e7ea13..6b840ee475 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -7226,7 +7226,7 @@ fn gen_toregexp( asm.cpop_into(ary); // The value we want to push on the stack is in RAX right now - let stack_ret = ctx.stack_push(Type::Unknown); + let stack_ret = ctx.stack_push(Type::UnknownHeap); asm.mov(stack_ret, val); // Clear the temp array.