Skip to content

Commit

Permalink
Change type of donotdelete intrinsics (#44793)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored Mar 30, 2022
1 parent 3e1ae47 commit bad450f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ static Type *get_pjlvalue(LLVMContext &C) { return JuliaType::get_pjlvalue_ty(C)

static FunctionType *get_func_sig(LLVMContext &C) { return JuliaType::get_jlfunc_ty(C); }

static FunctionType *get_donotdelete_sig(LLVMContext &C) {
return FunctionType::get(getVoidTy(C), true);
}

static AttributeList get_func_attrs(LLVMContext &C)
{
return AttributeList::get(C,
Expand Down Expand Up @@ -1100,7 +1104,7 @@ static const auto &builtin_func_map() {
{ jl_f_arrayset_addr, new JuliaFunction{XSTR(jl_f_arrayset), get_func_sig, get_func_attrs} },
{ jl_f_arraysize_addr, new JuliaFunction{XSTR(jl_f_arraysize), get_func_sig, get_func_attrs} },
{ jl_f_apply_type_addr, new JuliaFunction{XSTR(jl_f_apply_type), get_func_sig, get_func_attrs} },
{ jl_f_donotdelete_addr, new JuliaFunction{XSTR(jl_f_donotdelete), get_func_sig, get_donotdelete_func_attrs} }
{ jl_f_donotdelete_addr, new JuliaFunction{XSTR(jl_f_donotdelete), get_donotdelete_sig, get_donotdelete_func_attrs} }
};
return builtins;
}
Expand Down

0 comments on commit bad450f

Please sign in to comment.