Skip to content

Commit

Permalink
fix a puzzlingly pre-existing bug that should have been making compil…
Browse files Browse the repository at this point in the history
…e-all unhappy
  • Loading branch information
vtjnash committed Apr 12, 2016
1 parent ee1a1ea commit cec1f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,6 @@ JL_DLLEXPORT jl_lambda_info_t *jl_get_specialized(jl_method_t *m, jl_tupletype_t
// copy fptr from the template method definition
new_linfo->fptr = linfo->fptr;
new_linfo->jlcall_api = linfo->jlcall_api;
new_linfo->functionObjectsDecls.functionObject = linfo->functionObjectsDecls.functionObject;
new_linfo->functionObjectsDecls.specFunctionObject = linfo->functionObjectsDecls.specFunctionObject;
new_linfo->functionID = linfo->functionID;
new_linfo->specFunctionID = linfo->functionID;
if (jl_options.compile_enabled == JL_OPTIONS_COMPILE_OFF && new_linfo->fptr == NULL) {
jl_printf(JL_STDERR,"code missing for ");
jl_static_show(JL_STDERR, (jl_value_t*)new_linfo);
Expand Down
5 changes: 2 additions & 3 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,9 +869,8 @@ static void to_function(jl_lambda_info_t *li)
li->functionID = jl_assign_functionID(f, 0);
if (specf)
li->specFunctionID = jl_assign_functionID(specf, 1);
if (f->getFunctionType() != jl_func_sig)
// mark the pointer as jl_fptr_sparam_t calling convention
li->jlcall_api = 1;
// mark the pointer calling convention
li->jlcall_api = (f->getFunctionType() == jl_func_sig ? 0 : 1);

// done compiling: restore global state
if (old != NULL) {
Expand Down

0 comments on commit cec1f30

Please sign in to comment.