diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h index dfcc667abf4e..4a5c03dd0ede 100644 --- a/llvm/include/llvm/IR/IRBuilder.h +++ b/llvm/include/llvm/IR/IRBuilder.h @@ -1927,8 +1927,10 @@ public: return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idx), Name); } - Value *CreateConstInBoundsGEP1_64(Value *Ptr, uint64_t Idx0, - const Twine &Name = "") { + LLVM_ATTRIBUTE_DEPRECATED( + Value *CreateConstInBoundsGEP1_64(Value *Ptr, uint64_t Idx0, + const Twine &Name = ""), + "Use the version with explicit element type instead") { return CreateConstInBoundsGEP1_64( Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0, Name);