[llvm] [clang] [NFC] Remove Type::getInt8PtrTy (PR #71029)
    Youngsuk Kim via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Nov  3 07:32:55 PDT 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);
----------------
JOE1994 wrote:
Thank you for the update 👍 
The following update is needed to avoid build failure.
```suggestion
    Type *NewTy = PointerType::get(M->getContext(), AS);
```
https://github.com/llvm/llvm-project/pull/71029
    
    
More information about the llvm-commits
mailing list