Skip to content

Commit 29e467f

Browse files
authored
[llvm] Deprecate Type::getPointerTo() (#113331)
`llvm::Type::getPointerTo()` is no longer needed with opaque pointers in LLVM. It may rather confuse new contributors to think that LLVM has typed pointers.
1 parent 5dc8d61 commit 29e467f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/IR/Type.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,9 @@ class Type {
472472
static Type *getWasm_FuncrefTy(LLVMContext &C);
473473

474474
/// Return a pointer to the current type. This is equivalent to
475-
/// PointerType::get(Foo, AddrSpace).
475+
/// PointerType::get(Ctx, AddrSpace).
476476
/// TODO: Remove this after opaque pointer transition is complete.
477+
LLVM_DEPRECATED("Use PointerType::get instead", "PointerType::get")
477478
PointerType *getPointerTo(unsigned AddrSpace = 0) const;
478479

479480
private:

0 commit comments

Comments
 (0)