diff --git a/src/codegen.cpp b/src/codegen.cpp index 69e875bcdd901..fe73f32613c66 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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;