From 8a19af513d549c173b5919fe697828c84cecc396 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 12 Jun 2023 12:14:02 +0200 Subject: [Clang] Remove uses of PointerType::getWithSamePointeeType (NFC) No longer relevant with opaque pointers. --- clang/lib/CodeGen/CodeGenFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index a0a6299039db..f6601638e62a 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -2499,7 +2499,7 @@ Address CodeGenFunction::EmitFieldAnnotations(const FieldDecl *D, auto *PTy = dyn_cast(VTy); unsigned AS = PTy ? PTy->getAddressSpace() : 0; llvm::PointerType *IntrinTy = - llvm::PointerType::getWithSamePointeeType(CGM.Int8PtrTy, AS); + llvm::PointerType::get(CGM.getLLVMContext(), AS); llvm::Function *F = CGM.getIntrinsic(llvm::Intrinsic::ptr_annotation, {IntrinTy, CGM.ConstGlobalsPtrTy}); -- cgit v1.2.3