Skip to content

Commit

Permalink
NFC cosmetic changes (#48451)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Jan 30, 2023
1 parent 6ab660d commit 4f92e79
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 0 additions & 2 deletions base/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
22 changes: 11 additions & 11 deletions src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f92e79

Please sign in to comment.