From 8547b0250046cf20f762bfd910bf180b757c69a6 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Sat, 7 Sep 2024 06:06:49 +1200 Subject: [PATCH] Add `JL_DATA_TYPE` for `jl_line_info_node_t` and `jl_code_info_t` (#55698) --- src/julia.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/julia.h b/src/julia.h index efdd6a1b08bf7..abb8a57ff13b0 100644 --- a/src/julia.h +++ b/src/julia.h @@ -234,6 +234,7 @@ JL_DLLEXPORT extern const jl_callptr_t jl_f_opaque_closure_call_addr; JL_DLLEXPORT extern const jl_callptr_t jl_fptr_wait_for_compiled_addr; typedef struct _jl_line_info_node_t { + JL_DATA_TYPE struct _jl_module_t *module; jl_value_t *method; // may contain a jl_symbol, jl_method_t, or jl_method_instance_t jl_sym_t *file; @@ -281,6 +282,7 @@ typedef union __jl_purity_overrides_t { // This type describes a single function body typedef struct _jl_code_info_t { + JL_DATA_TYPE // ssavalue-indexed arrays of properties: jl_array_t *code; // Any array of statements jl_debuginfo_t *debuginfo; // Table of edge data for each statement