From 25599c3ff915242bf53e7594e7f695e5c6a53120 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Fri, 20 Aug 2021 10:23:27 -0700 Subject: [PATCH] [NFC] Remove unused CallBase::addDereferenceableOrNullAttr() --- llvm/include/llvm/IR/InstrTypes.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h index 4b0608d..3f37ac3 100644 --- a/llvm/include/llvm/IR/InstrTypes.h +++ b/llvm/include/llvm/IR/InstrTypes.h @@ -1584,12 +1584,6 @@ public: Attrs = Attrs.addDereferenceableRetAttr(getContext(), Bytes); } - /// adds the dereferenceable_or_null attribute to the list of - /// attributes. - void addDereferenceableOrNullAttr(unsigned i, uint64_t Bytes) { - Attrs = Attrs.addDereferenceableOrNullAttr(getContext(), i, Bytes); - } - /// Determine whether the return value has the given attribute. bool hasRetAttr(Attribute::AttrKind Kind) const { return hasRetAttrImpl(Kind); -- 2.7.4