Skip to content

Commit 708873a

Browse files
authored
actually add the atributes (#44097)
Co-authored-by: oscarddssmith <[email protected]>
1 parent 93a5f69 commit 708873a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/codegen.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,9 @@ static AttributeList get_func_attrs(LLVMContext &C)
476476
static AttributeList get_donotdelete_func_attrs(LLVMContext &C)
477477
{
478478
AttributeSet FnAttrs = AttributeSet::get(C, makeArrayRef({Attribute::get(C, "thunk")}));
479-
FnAttrs.addAttribute(C, Attribute::InaccessibleMemOnly);
480-
FnAttrs.addAttribute(C, Attribute::WillReturn);
481-
FnAttrs.addAttribute(C, Attribute::NoUnwind);
479+
FnAttrs = FnAttrs.addAttribute(C, Attribute::InaccessibleMemOnly);
480+
FnAttrs = FnAttrs.addAttribute(C, Attribute::WillReturn);
481+
FnAttrs = FnAttrs.addAttribute(C, Attribute::NoUnwind);
482482
return AttributeList::get(C,
483483
FnAttrs,
484484
Attributes(C, {Attribute::NonNull}),
@@ -3480,7 +3480,7 @@ static bool emit_builtin_call(jl_codectx_t &ctx, jl_cgval_t *ret, jl_value_t *f,
34803480
// For now we emit this as a vararg call to the builtin
34813481
// (which doesn't look at the arguments). In the future,
34823482
// this should be an LLVM builtin.
3483-
auto it = builtin_func_map.find(jl_f_donotdelete);
3483+
auto it = builtin_func_map.find(jl_f_donotdelete_addr);
34843484
if (it == builtin_func_map.end()) {
34853485
return false;
34863486
}

0 commit comments

Comments
 (0)