llvm::AttributeList::removeParamAttribute

Remove the specified attribute at the specified arg 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 specified arg index from this attribute list. Returns a new list because attribute lists are immutable.

[[nodiscard]]
AttributeList
removeParamAttribute(
    LLVMContext& C,
    unsigned int ArgNo,
    Attribute::AttrKind Kind) const;
» more...

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

[[nodiscard]]
AttributeList
removeParamAttribute(
    LLVMContext& C,
    unsigned int ArgNo,
    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.
ArgNoZero-based argument index.
KindEnum attribute kind to remove.