summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-12-14 15:12:44 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2022-12-14 16:17:46 -0500
commit693c01d50917071433ff1bc7c4d8ce626a12c48e (patch)
treedd36eb25dc2e1cb48f195883968687eec804d8d9 /yjit
parent7a63114f8eaba7a1fe8a56a2e665703d9f9cfa8a (diff)
YJIT: Remove duplicate call to jit_prepare_routine_call()
It's idempotent.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6930
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/codegen.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs
index 16fe837f4d..ab87038c67 100644
--- a/yjit/src/codegen.rs
+++ b/yjit/src/codegen.rs
@@ -2219,9 +2219,6 @@ fn gen_setinstancevariable(
let ic = jit_get_arg(jit, 1).as_u64(); // type IVC
// The function could raise exceptions.
- jit_prepare_routine_call(jit, ctx, asm);
-
- // Save the PC and SP because the callee may allocate
// Note that this modifies REG_SP, which is why we do it first
jit_prepare_routine_call(jit, ctx, asm);