[llvm] 25599c3 - [NFC] Remove unused CallBase::addDereferenceableOrNullAttr()

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 20 10:38:58 PDT 2021


Author: Arthur Eubanks
Date: 2021-08-20T10:38:35-07:00
New Revision: 25599c3ff915242bf53e7594e7f695e5c6a53120

URL: https://github.com/llvm/llvm-project/commit/25599c3ff915242bf53e7594e7f695e5c6a53120
DIFF: https://github.com/llvm/llvm-project/commit/25599c3ff915242bf53e7594e7f695e5c6a53120.diff

LOG: [NFC] Remove unused CallBase::addDereferenceableOrNullAttr()

Added: 
    

Modified: 
    llvm/include/llvm/IR/InstrTypes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index 4b0608d38260..3f37ac3659d2 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -1584,12 +1584,6 @@ class CallBase : public Instruction {
     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);


        


More information about the llvm-commits mailing list