diff --git a/base/reflection.jl b/base/reflection.jl index 75a8916e3ae32..102c1ca9605e3 100644 --- a/base/reflection.jl +++ b/base/reflection.jl @@ -308,8 +308,6 @@ function isfieldatomic(@nospecialize(t::Type), s::Int) return unsafe_load(Ptr{UInt32}(atomicfields), 1 + s÷32) & (1 << (s%32)) != 0 end - - """ @locals() diff --git a/src/gf.c b/src/gf.c index 10d8d888b08da..894a8a415e002 100644 --- a/src/gf.c +++ b/src/gf.c @@ -2320,7 +2320,6 @@ jl_code_instance_t *jl_compile_method_internal(jl_method_instance_t *mi, size_t return codeinst; } - jl_value_t *jl_fptr_const_return(jl_value_t *f, jl_value_t **args, uint32_t nargs, jl_code_instance_t *m) { return m->rettype_const; diff --git a/src/method.c b/src/method.c index 6b13045db81a7..b1f4051e28a82 100644 --- a/src/method.c +++ b/src/method.c @@ -438,19 +438,19 @@ static void jl_code_info_set_ir(jl_code_info_t *li, jl_expr_t *ir) JL_DLLEXPORT jl_method_instance_t *jl_new_method_instance_uninit(void) { jl_task_t *ct = jl_current_task; - jl_method_instance_t *li = + jl_method_instance_t *mi = (jl_method_instance_t*)jl_gc_alloc(ct->ptls, sizeof(jl_method_instance_t), jl_method_instance_type); - li->def.value = NULL; - li->specTypes = NULL; - li->sparam_vals = jl_emptysvec; - jl_atomic_store_relaxed(&li->uninferred, NULL); - li->backedges = NULL; - li->callbacks = NULL; - jl_atomic_store_relaxed(&li->cache, NULL); - li->inInference = 0; - jl_atomic_store_relaxed(&li->precompiled, 0); - return li; + mi->def.value = NULL; + mi->specTypes = NULL; + mi->sparam_vals = jl_emptysvec; + jl_atomic_store_relaxed(&mi->uninferred, NULL); + mi->backedges = NULL; + mi->callbacks = NULL; + jl_atomic_store_relaxed(&mi->cache, NULL); + mi->inInference = 0; + jl_atomic_store_relaxed(&mi->precompiled, 0); + return mi; } JL_DLLEXPORT jl_code_info_t *jl_new_code_info_uninit(void)