Skip to content

Commit 1bac76f

Browse files
committed
wasm: jit_exec is defined but unused
1 parent f45bb9b commit 1bac76f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ zjit_compile(rb_execution_context_t *ec)
561561

562562
static inline void zjit_materialize_frames(rb_control_frame_t *cfp);
563563

564+
#if USE_YJIT || USE_ZJIT
564565
// Execute JIT code compiled by yjit_compile() or zjit_compile()
565566
static inline VALUE
566567
jit_exec(rb_execution_context_t *ec)
@@ -595,7 +596,6 @@ jit_exec(rb_execution_context_t *ec)
595596
return Qundef;
596597
}
597598

598-
#if USE_YJIT || USE_ZJIT
599599
// Generate JIT code that supports the following kind of ISEQ entry:
600600
// * The first ISEQ pushed by vm_exec_handle_exception. The frame would
601601
// point to a location specified by a catch table, and it doesn't have
@@ -652,6 +652,7 @@ jit_exec_exception(rb_execution_context_t *ec)
652652
}
653653
#else
654654
# define jit_compile_exception(ec) ((rb_jit_func_t)0)
655+
# define jit_exec(ec) Qundef
655656
# define jit_exec_exception(ec) Qundef
656657
#endif
657658

0 commit comments

Comments
 (0)