diff options
author | Nikita Popov <npopov@redhat.com> | 2023-06-12 12:14:02 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-06-12 12:18:28 +0200 |
commit | 8a19af513d549c173b5919fe697828c84cecc396 (patch) | |
tree | 9c4eba1fb0f7f47cbe44423568bd60c06462731e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | b2f8e3121a9bc2dcff6b678e4203cbb6e946f2c2 (diff) | |
download | llvm-8a19af513d549c173b5919fe697828c84cecc396.zip llvm-8a19af513d549c173b5919fe697828c84cecc396.tar.gz llvm-8a19af513d549c173b5919fe697828c84cecc396.tar.bz2 |
[Clang] Remove uses of PointerType::getWithSamePointeeType (NFC)
No longer relevant with opaque pointers.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index a0a6299..f660163 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<llvm::PointerType>(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}); |