[llvm] [IR][SPIR-V] Replace of PointerType::get(Type) with opaque version (NFC) (PR #124755)
Mats Jun Larsen via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 06:37:26 PST 2025
================
@@ -629,7 +629,7 @@ SPIRVGlobalRegistry::getOrCreateConstNullPtr(MachineIRBuilder &MIRBuilder,
unsigned AddressSpace = typeToAddressSpace(LLVMTy);
// Find a constant in DT or build a new one.
Constant *CP = ConstantPointerNull::get(
- PointerType::get(::getPointeeType(LLVMTy), AddressSpace));
+ PointerType::get(::getPointeeType(LLVMTy)->getContext(), AddressSpace));
----------------
junlarsen wrote:
Okay cool, I wasn't too sure. I'll change it thanks!
https://github.com/llvm/llvm-project/pull/124755
More information about the llvm-commits
mailing list