[llvm] [IR] Replace of PointerType::get(Type) with opaque version (NFC) (PR #123617)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 07:23:08 PST 2025
================
@@ -47,7 +47,7 @@ void Type::dump() {
PointerType *PointerType::get(Type *ElementType, unsigned AddressSpace) {
return cast<PointerType>(ElementType->getContext().getType(
- llvm::PointerType::get(ElementType->LLVMTy, AddressSpace)));
+ llvm::PointerType::get(ElementType->LLVMTy->getContext(), AddressSpace)));
}
----------------
nikic wrote:
It's okay to remove them right away, no need to deprecate.
https://github.com/llvm/llvm-project/pull/123617
More information about the llvm-commits
mailing list