Remove the specified attribute at the return value index from this attribute list. Returns a new list because attribute lists are immutable.
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...
A new attribute list with the attributes removed.
The return value should not be discarded.
| Name | Description |
|---|---|
| C | Context used to uniquify the result. |
| Kind | Enum attribute kind to remove. |