From de6ec919cfa0e03f178e93a9d7620a021d2f7017 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Sun, 17 Apr 2022 19:46:49 +0000 Subject: [PATCH] Fix attributes for `donotdelete` intrinsic 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. --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index 1a3273a9eefb8..218c58c081f23 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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); }