Skip to content

Commit

Permalink
Fix attributes for donotdelete intrinsic
Browse files Browse the repository at this point in the history
The change in #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 fd75d47 commit de6ec91
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 de6ec91

Please sign in to comment.