Skip to content

Commit

Permalink
Add missing intialization for aggressive_constprop flag (JuliaLang#39466
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Keno committed Jan 31, 2021
1 parent b4b9643 commit aad4fec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/method.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ JL_DLLEXPORT jl_code_info_t *jl_new_code_info_uninit(void)
src->propagate_inbounds = 0;
src->pure = 0;
src->edges = jl_nothing;
src->aggressive_constprop = 0;
return src;
}

Expand Down Expand Up @@ -644,6 +645,7 @@ JL_DLLEXPORT jl_method_t *jl_new_method_uninit(jl_module_t *module)
m->primary_world = 1;
m->deleted_world = ~(size_t)0;
m->is_for_opaque_closure = 0;
m->aggressive_constprop = 0;
JL_MUTEX_INIT(&m->writelock);
return m;
}
Expand Down

0 comments on commit aad4fec

Please sign in to comment.