diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h --- a/llvm/include/llvm/IR/Type.h +++ b/llvm/include/llvm/IR/Type.h @@ -515,6 +515,7 @@ /// Return a pointer to the current type. This is equivalent to /// PointerType::get(Foo, AddrSpace). /// TODO: Remove this after opaque pointer transition is complete. + [[deprecated("Use 'PointerType::get(Ty, AddrSpace)' instead")]] PointerType *getPointerTo(unsigned AddrSpace = 0) const; private: