From 29168e80ba6fabb96c2b45d9deb1e908e02f8a53 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Mon, 23 Sep 2024 22:32:53 -0500 Subject: [IR][Attribute] Add missing `const` def on `addAllocSizeParamAttr()`; NFC --- llvm/lib/IR/Attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Attributes.cpp') 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 &NumElemsArg) { + const std::optional &NumElemsArg) const { AttrBuilder B(C); B.addAllocSizeAttr(ElemSizeArg, NumElemsArg); return addParamAttributes(C, Index, B); -- cgit v1.1