diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-02-13 09:40:38 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-02-13 10:10:19 -0800 |
commit | a93f4e3d1a656861897a244f34f9cdbc0d7fea49 (patch) | |
tree | f709fe0929402a36e75bed4107657cb77e7ea836 /yjit | |
parent | fdaef7a72e8611ffd4889aa1a1dbc6ebaf5b3095 (diff) |
byteslice can return nil so we have to push an "unknown" value
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index 1180210aa3..5658fa5950 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -5329,7 +5329,7 @@ fn jit_rb_str_byteslice( let ret_opnd = asm.ccall(rb_str_byte_substr as *const u8, vec![recv, beg, len]); asm.stack_pop(3); - let out_opnd = asm.stack_push(Type::TString); + let out_opnd = asm.stack_push(Type::Unknown); asm.mov(out_opnd, ret_opnd); true |