[clang] [llvm] [llvm] Deprecate Type::getPointerTo() (PR #113331)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 23:22:51 PDT 2024


================
@@ -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.
+  [[deprecated("Use PointerType::get instead")]]
----------------
zwuis wrote:

Can we use `LLVM_DEPRECATED` in llvm/Support/Compiler.h?

https://github.com/llvm/llvm-project/pull/113331


More information about the cfe-commits mailing list