Skip to content

Commit

Permalink
Generate c signature when possible. Fix #11304
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed May 17, 2015
1 parent 8f7531b commit 11ac3db
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3881,16 +3881,7 @@ static Function *emit_function(jl_lambda_info_t *lam)
if (!va && !hasCapt && lam->specTypes != NULL && lam->inferred) {
// no captured vars and not vararg
// consider specialized signature
for(size_t i=0; i < jl_nparams(lam->specTypes); i++) {
if (isbits_spec(jl_tparam(lam->specTypes, i))) { // assumes !va
specsig = true;
break;
}
}
if (jl_nparams(lam->specTypes) == 0)
specsig = true;
if (isbits_spec(jlrettype))
specsig = true;
specsig = true;
}

std::stringstream funcName;
Expand Down

0 comments on commit 11ac3db

Please sign in to comment.