aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.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/Transforms/Utils/InlineFunction.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/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 7ea51aa..4749b21 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1608,8 +1608,8 @@ static bool isUsedByLifetimeMarker(Value *V) {
// lifetime.start or lifetime.end intrinsics.
static bool hasLifetimeMarkers(AllocaInst *AI) {
Type *Ty = AI->getType();
- Type *Int8PtrTy = Type::getInt8PtrTy(Ty->getContext(),
- Ty->getPointerAddressSpace());
+ Type *Int8PtrTy =
+ PointerType::get(Ty->getContext(), Ty->getPointerAddressSpace());
if (Ty == Int8PtrTy)
return isUsedByLifetimeMarker(AI);