aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CoverageMappingGen.cpp
diff options
context:
space:
mode:
authorPaulo Matos <pmatos@igalia.com>2023-11-07 17:26:26 +0100
committerGitHub <noreply@github.com>2023-11-07 17:26:26 +0100
commit7b9d73c2f90c0ed8497339a16fc39785349d9610 (patch)
tree5f31fd1d5ffc20ce828ccf3b3d26a969f0528ba7 /clang/lib/CodeGen/CoverageMappingGen.cpp
parent75d6795e420274346b14aca8b6bd49bfe6030eeb (diff)
downloadllvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.zip
llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.tar.gz
llvm-7b9d73c2f90c0ed8497339a16fc39785349d9610.tar.bz2
[NFC] Remove Type::getInt8PtrTy (#71029)
Replace this with PointerType::getUnqual(). Followup to the opaque pointer transition. Fixes an in-code TODO item.
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r--clang/lib/CodeGen/CoverageMappingGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index d77aa4d..b16358e 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -1820,7 +1820,7 @@ void CoverageMappingModuleGen::emit() {
CGM.addUsedGlobal(CovData);
// Create the deferred function records array
if (!FunctionNames.empty()) {
- auto NamesArrTy = llvm::ArrayType::get(llvm::Type::getInt8PtrTy(Ctx),
+ auto NamesArrTy = llvm::ArrayType::get(llvm::PointerType::getUnqual(Ctx),
FunctionNames.size());
auto NamesArrVal = llvm::ConstantArray::get(NamesArrTy, FunctionNames);
// This variable will *NOT* be emitted to the object file. It is used