[llvm] [llvm] Replace uses of Type::getPointerTo() (NFC) (PR #110163)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 13:18:55 PDT 2024


================
@@ -1034,7 +1034,8 @@ void CallLowering::insertSRetStores(MachineIRBuilder &MIRBuilder, Type *RetTy,
   unsigned NumValues = SplitVTs.size();
   Align BaseAlign = DL.getPrefTypeAlign(RetTy);
   unsigned AS = DL.getAllocaAddrSpace();
-  LLT OffsetLLTy = getLLTForType(*DL.getIndexType(RetTy->getPointerTo(AS)), DL);
+  LLT OffsetLLTy = getLLTForType(
+      *DL.getIndexType(PointerType::get(RetTy->getContext(), AS)), DL);
----------------
nikic wrote:

```suggestion
      *DL.getIndexType(RetTy->getContext(), AS), DL);
```

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


More information about the llvm-commits mailing list