[llvm] [IR] Replace of PointerType::get(Type) with opaque version (NFC) (PR #123617)
Mats Jun Larsen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 06:41:55 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)));
}
----------------
junlarsen wrote:
I can look into this later. From what I can tell there's only a few uses, all of which are related to SandboxIR
I'm not very familiar with SandboxIR, but from what I can tell it's relatively new. Do you think we also want a deprecation/removal process, or do you think it's fine to remove them?
https://github.com/llvm/llvm-project/pull/123617
More information about the llvm-commits
mailing list