Skip to content

Commit

Permalink
Fix attributes for donotdelete intrinsic (JuliaLang#45010)
Browse files Browse the repository at this point in the history
The change in JuliaLang#44793 changed the signature of the donotdelete intrinsic,
but didn't change the corresponding attributes, leaving a `nonnull` attribute
on a `void` return, which fails the verifier.
  • Loading branch information
Keno committed Apr 17, 2022
1 parent 6106e6c commit ce7c858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static AttributeList get_donotdelete_func_attrs(LLVMContext &C)
FnAttrs = FnAttrs.addAttribute(C, Attribute::NoUnwind);
return AttributeList::get(C,
FnAttrs,
Attributes(C, {Attribute::NonNull}),
Attributes(C, {}),
None);
}

Expand Down

0 comments on commit ce7c858

Please sign in to comment.