aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-07-18 11:39:02 +0200
committerNikita Popov <npopov@redhat.com>2023-07-18 11:41:46 +0200
commit35bdcb03d91fb98f6d400505183613f6f8aa7af3 (patch)
tree855d271d4273c8a46463fbadd025506d2dfd4786 /llvm/lib/IR/Function.cpp
parent3fa5ee67babad11a88943ede42a4123299acf31a (diff)
downloadllvm-35bdcb03d91fb98f6d400505183613f6f8aa7af3.zip
llvm-35bdcb03d91fb98f6d400505183613f6f8aa7af3.tar.gz
llvm-35bdcb03d91fb98f6d400505183613f6f8aa7af3.tar.bz2
[llvm] Remove uses of isOpaqueOrPointeeTypeEquals() (NFC)
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r--llvm/lib/IR/Function.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 57163ad..27219e8 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -1609,12 +1609,7 @@ static bool matchIntrinsicType(
if (!ThisArgVecTy || !ReferenceType ||
(ReferenceType->getElementCount() != ThisArgVecTy->getElementCount()))
return true;
- PointerType *ThisArgEltTy =
- dyn_cast<PointerType>(ThisArgVecTy->getElementType());
- if (!ThisArgEltTy)
- return true;
- return !ThisArgEltTy->isOpaqueOrPointeeTypeMatches(
- ReferenceType->getElementType());
+ return !ThisArgVecTy->getElementType()->isPointerTy();
}
case IITDescriptor::VecElementArgument: {
if (D.getArgumentNumber() >= ArgTys.size())