[clang] [llvm] [NFC] Remove Type::getInt8PtrTy (PR #71029)

Paulo Matos via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 00:23:30 PST 2023


================
@@ -1514,7 +1514,7 @@ static void CreateGCRelocates(ArrayRef<Value *> LiveVariables,
   auto getGCRelocateDecl = [&](Type *Ty) {
     assert(isHandledGCPointerType(Ty, GC));
     auto AS = Ty->getScalarType()->getPointerAddressSpace();
-    Type *NewTy = Type::getInt8PtrTy(M->getContext(), AS);
+    Type *NewTy = PointerType::getUnqual(M->getContext(), AS);
----------------
pmatos wrote:

Right - thanks for pointing that out.

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


More information about the cfe-commits mailing list