diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-09-23 22:32:53 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2024-09-23 22:33:35 -0500 |
commit | 29168e80ba6fabb96c2b45d9deb1e908e02f8a53 (patch) | |
tree | fe9ba512fdf6d0e7fd0338e46c919457c3d96a7f /llvm/lib/IR/Attributes.cpp | |
parent | 9b5a3036adbd9eed0f377cdf06aa622b917a1699 (diff) | |
download | llvm-29168e80ba6fabb96c2b45d9deb1e908e02f8a53.zip llvm-29168e80ba6fabb96c2b45d9deb1e908e02f8a53.tar.gz llvm-29168e80ba6fabb96c2b45d9deb1e908e02f8a53.tar.bz2 |
[IR][Attribute] Add missing `const` def on `addAllocSizeParamAttr()`; NFC
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index fa124e4..eb61583 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1608,7 +1608,7 @@ AttributeList AttributeList::addRangeRetAttr(LLVMContext &C, AttributeList AttributeList::addAllocSizeParamAttr( LLVMContext &C, unsigned Index, unsigned ElemSizeArg, - const std::optional<unsigned> &NumElemsArg) { + const std::optional<unsigned> &NumElemsArg) const { AttrBuilder B(C); B.addAllocSizeAttr(ElemSizeArg, NumElemsArg); return addParamAttributes(C, Index, B); |