Skip to content

Commit

Permalink
move var decl to fix !ENABLE_INFERENCE mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Nov 15, 2016
1 parent d8e2380 commit 069f6b0
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 @@ -188,13 +188,13 @@ jl_code_info_t *jl_type_infer(jl_method_instance_t *li, int force)
JL_TIMING(INFERENCE);
if (jl_typeinf_func == NULL)
return NULL;
jl_code_info_t *src = NULL;
#ifdef ENABLE_INFERENCE
jl_module_t *mod = NULL;
if (li->def != NULL)
mod = li->def->module;
static int inInference = 0;
int lastIn = inInference;
jl_code_info_t *src = NULL;
inInference = 1;
if (force ||
(mod != jl_gf_mtable(jl_typeinf_func)->module &&
Expand Down

0 comments on commit 069f6b0

Please sign in to comment.