llvm::AttributeList::removeRetAttribute

Remove the specified attribute at the return value index from this attribute list. Returns a new list because attribute lists are immutable.

Synopses

Declared in <llvm/IR/Attributes.h>

Remove the specified attribute at the return value index from this attribute list. Returns a new list because attribute lists are immutable.

[[nodiscard]]
AttributeList
removeRetAttribute(
    LLVMContext& C,
    Attribute::AttrKind Kind) const;
» more...

Remove the specified attribute at the return value index from this attribute list. Returns a new list because attribute lists are immutable.

[[nodiscard]]
AttributeList
removeRetAttribute(
    LLVMContext& C,
    StringRef Kind) const;
» more...

Return Value

A new attribute list with the attributes removed.

NOTE

The return value should not be discarded.

Parameters

NameDescription
CContext used to uniquify the result.
KindEnum attribute kind to remove.