From d03f4177dfbb6a910edde31acd0f14786b549bad Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Wed, 9 Aug 2023 00:52:17 +0200 Subject: [clang] Drop some references to typed pointers (getInt8PtrTy). NFC Differential Revision: https://reviews.llvm.org/D157550 --- 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 4605f9b5da78..2000c4ce02c9 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -2504,7 +2504,7 @@ void CodeGenFunction::EmitVarAnnotations(const VarDecl *D, llvm::Value *V) { // FIXME We create a new bitcast for every annotation because that's what // llvm-gcc was doing. unsigned AS = V->getType()->getPointerAddressSpace(); - llvm::Type *I8PtrTy = Builder.getInt8PtrTy(AS); + llvm::Type *I8PtrTy = Builder.getPtrTy(AS); for (const auto *I : D->specific_attrs()) EmitAnnotationCall(CGM.getIntrinsic(llvm::Intrinsic::var_annotation, {I8PtrTy, CGM.ConstGlobalsPtrTy}), -- cgit v1.2.3