Skip to content

Commit

Permalink
Merge pull request #18452 from JuliaLang/jn/18449
Browse files Browse the repository at this point in the history
[release 0.5] hack in a fix to getting the right lambda for the incremental deserializer
  • Loading branch information
tkelman authored Sep 17, 2016
2 parents 8ee99a5 + b90f1a2 commit aad3046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gf.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ JL_DLLEXPORT jl_lambda_info_t *jl_specializations_get_linfo(jl_method_t *m, jl_t
{
JL_LOCK(&m->writelock);
jl_typemap_entry_t *sf = jl_typemap_assoc_by_type(m->specializations, type, NULL, 1, /*subtype*/0, /*offs*/0);
if (sf && jl_is_lambda_info(sf->func.value) && ((jl_lambda_info_t*)sf->func.value)->code != jl_nothing) {
if (sf && jl_is_lambda_info(sf->func.value) && (!allow_exec || sf->func.linfo->code != jl_nothing)) {
JL_UNLOCK(&m->writelock);
return (jl_lambda_info_t*)sf->func.value;
}
Expand Down

0 comments on commit aad3046

Please sign in to comment.