summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--byterun/meta.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/byterun/meta.c b/byterun/meta.c
index 021e4680c..ac86ee8e1 100644
--- a/byterun/meta.c
+++ b/byterun/meta.c
@@ -55,6 +55,7 @@ CAMLprim value caml_reify_bytecode(value prog, value len)
#ifdef THREADED_CODE
caml_thread_code((code_t) prog, (asize_t) Long_val(len));
#endif
+ caml_prepare_bytecode((code_t) prog, (asize_t) Long_val(len));
clos = caml_alloc_small (1, Closure_tag);
Code_val(clos) = (code_t) prog;
return clos;