diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-01-25 18:49:54 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:27 -0400 |
commit | 36232a48a63923e6d3bd3ccad30a12a02b20e89b (patch) | |
tree | 2fd16bb3abdbabd43411a173ee53ec4b8d0c4110 /ujit_codegen.c | |
parent | c61238a2761ca8d9bbe56dc3b06aa07da5784c96 (diff) | |
download | ruby-36232a48a63923e6d3bd3ccad30a12a02b20e89b.tar.gz |
Set T_FIXNUM type tags in opt_plus, opt_minus
Diffstat (limited to 'ujit_codegen.c')
-rw-r--r-- | ujit_codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ujit_codegen.c b/ujit_codegen.c index c3e7f912d0..7c7866f403 100644 --- a/ujit_codegen.c +++ b/ujit_codegen.c @@ -611,7 +611,7 @@ gen_opt_minus(jitstate_t* jit, ctx_t* ctx) add(cb, REG0, imm_opnd(1)); // Push the output on the stack - x86opnd_t dst = ctx_stack_push(ctx, T_NONE); + x86opnd_t dst = ctx_stack_push(ctx, T_FIXNUM); mov(cb, dst, REG0); return true; @@ -657,7 +657,7 @@ gen_opt_plus(jitstate_t* jit, ctx_t* ctx) jo_ptr(cb, side_exit); // Push the output on the stack - x86opnd_t dst = ctx_stack_push(ctx, T_NONE); + x86opnd_t dst = ctx_stack_push(ctx, T_FIXNUM); mov(cb, dst, REG0); return true; |