[llvm] [IR] Replace of PointerType::getUnqual(Type) with opaque version (NFC) (PR #123909)

Mats Jun Larsen via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 01:02:11 PST 2025


================
@@ -70,7 +70,7 @@ StructType *getBinDescTy(Module &M) {
 }
 
 PointerType *getBinDescPtrTy(Module &M) {
-  return PointerType::getUnqual(getBinDescTy(M));
+  return PointerType::getUnqual(M.getContext());
 }
----------------
junlarsen wrote:

Both this and getDeviceImagePtrTy give the same type. Will look into if deduplicating makes sense.

https://github.com/llvm/llvm-project/pull/123909


More information about the llvm-commits mailing list