[llvm] [IR] Deprecate PointerType::get/getUnqual pointee type overload (PR #134517)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 6 03:46:17 PDT 2025


================
@@ -685,13 +685,19 @@ class PointerType : public Type {
 
   /// This constructs a pointer to an object of the specified type in a numbered
   /// address space.
+  LLVM_DEPRECATED("PointerType::get with pointee type is pending removal. Use "
+                  "Context overload.",
+                  "PointerType::get(LLVMContext, AS)")
----------------
nikic wrote:

Please use `[[deprecated]]` instead. Only use LLVM_DEPRECATED if you can actually provide a working fixit, which you can't do here.

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


More information about the llvm-commits mailing list