Add the dereferenceable_or_null attribute to the attribute set at the given arg index. Returns a new list because attribute lists are immutable.
Declared in <llvm/IR/Attributes.h>
[[nodiscard]]
AttributeList
addDereferenceableOrNullParamAttr(
LLVMContext& C,
unsigned int ArgNo,
uint64_t Bytes) const;
A new attribute list with the attributes added.
The return value should not be discarded.
| Name | Description |
|---|---|
| C | Context used to uniquify the result. |
| ArgNo | Zero-based argument index. |
| Bytes | Number of dereferenceable-or-null bytes. |