diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h index 2f53197df1999..c86483b017f07 100644 --- a/llvm/include/llvm/IR/Type.h +++ b/llvm/include/llvm/IR/Type.h @@ -471,8 +471,9 @@ class Type { static Type *getWasm_FuncrefTy(LLVMContext &C); /// Return a pointer to the current type. This is equivalent to - /// PointerType::get(Foo, AddrSpace). + /// PointerType::get(Ctx, AddrSpace). /// TODO: Remove this after opaque pointer transition is complete. + LLVM_DEPRECATED("Use PointerType::get instead", "PointerType::get") PointerType *getPointerTo(unsigned AddrSpace = 0) const; private: