diff options
| author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-08-09 00:52:17 +0200 |
|---|---|---|
| committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2023-08-10 15:07:06 +0200 |
| commit | d03f4177dfbb6a910edde31acd0f14786b549bad (patch) | |
| tree | 71d30aefe2f8dd763d1fb3689687967424732ad2 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | ad52c9cabbf41fd488051f0fd430f9e92e60260e (diff) | |
[clang] Drop some references to typed pointers (getInt8PtrTy). NFC
Differential Revision: https://reviews.llvm.org/D157550
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 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<AnnotateAttr>()) EmitAnnotationCall(CGM.getIntrinsic(llvm::Intrinsic::var_annotation, {I8PtrTy, CGM.ConstGlobalsPtrTy}), |
