aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.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 /llvm/lib/Bitcode/Writer/BitcodeWriter.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 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 5e3341d..3a17ee1 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -5178,7 +5178,7 @@ void llvm::embedBitcodeInModule(llvm::Module &M, llvm::MemoryBufferRef Buf,
// Save llvm.compiler.used and remove it.
SmallVector<Constant *, 2> UsedArray;
SmallVector<GlobalValue *, 4> UsedGlobals;
- Type *UsedElementType = Type::getInt8PtrTy(M.getContext());
+ Type *UsedElementType = PointerType::getUnqual(M.getContext());
GlobalVariable *Used = collectUsedGlobalVariables(M, UsedGlobals, true);
for (auto *GV : UsedGlobals) {
if (GV->getName() != "llvm.embedded.module" &&