[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 06:29:00 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:
We should remove these SandboxIR methods. They shouldn't have been copied into brand-new code...
https://github.com/llvm/llvm-project/pull/123617
More information about the llvm-commits
mailing list