Skip to content

Commit b260fd8

Browse files
committed
wasm: Define jit_exec only if any JIT is enabled
``` ../src/vm.c:566:1: warning: unused function 'jit_exec' [-Wunused-function] 566 | jit_exec(rb_execution_context_t *ec) | ^~~~~~~~ ```
1 parent c568944 commit b260fd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm.c

Lines changed: 1 addition & 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

0 commit comments

Comments
 (0)