diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h index 6d32a898b668..046e9b5e809e 100644 --- a/llvm/include/llvm/IR/Instructions.h +++ b/llvm/include/llvm/IR/Instructions.h @@ -975,15 +975,6 @@ public: NameStr, InsertAtEnd); } - LLVM_ATTRIBUTE_DEPRECATED(static GetElementPtrInst *CreateInBounds( - Value *Ptr, ArrayRef IdxList, const Twine &NameStr = "", - Instruction *InsertBefore = nullptr), - "Use the version with explicit element type instead") { - return CreateInBounds( - Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList, - NameStr, InsertBefore); - } - /// Create an "inbounds" getelementptr. See the documentation for the /// "inbounds" flag in LangRef.html for details. static GetElementPtrInst * @@ -996,15 +987,6 @@ public: return GEP; } - LLVM_ATTRIBUTE_DEPRECATED(static GetElementPtrInst *CreateInBounds( - Value *Ptr, ArrayRef IdxList, const Twine &NameStr, - BasicBlock *InsertAtEnd), - "Use the version with explicit element type instead") { - return CreateInBounds( - Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, IdxList, - NameStr, InsertAtEnd); - } - static GetElementPtrInst *CreateInBounds(Type *PointeeType, Value *Ptr, ArrayRef IdxList, const Twine &NameStr,