summaryrefslogtreecommitdiff
path: root/yjit_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_core.c')
-rw-r--r--yjit_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit_core.c b/yjit_core.c
index 8af35258b2..6e1659ca23 100644
--- a/yjit_core.c
+++ b/yjit_core.c
@@ -945,7 +945,10 @@ invalidate_block_version(block_t* block)
// Clear out the JIT func so that we can recompile later and so the
// interpreter will run the iseq
+
+#if JIT_ENABLED
iseq->body->jit_func = 0;
+#endif
// TODO:
// May want to recompile a new entry point (for interpreter entry blocks)