aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2024-08-09 13:46:33 +0200
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2024-08-12 13:28:42 +0200
commit1ff06c54b70dd4c1971bf07a5d3a5467c16cca65 (patch)
tree0a7c700f5705fbf11dd2a451fd4f1ff30770302a /llvm/lib/IR/Verifier.cpp
parent6ca678074ba58e3db50a764400f6137782d338cf (diff)
downloadllvm-1ff06c54b70dd4c1971bf07a5d3a5467c16cca65.zip
llvm-1ff06c54b70dd4c1971bf07a5d3a5467c16cca65.tar.gz
llvm-1ff06c54b70dd4c1971bf07a5d3a5467c16cca65.tar.bz2
[verifier] Get rid of getResolverFunctionType. NFC (#102631)
With opaque pointers we can just get the pointer type for the resolver function by using PointerType::get, making the GlobalIFunc::getResolverFunctionType function obsolete.
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 402af37..7d71ce3 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -1006,9 +1006,7 @@ void Verifier::visitGlobalIFunc(const GlobalIFunc &GI) {
Check(isa<PointerType>(Resolver->getFunctionType()->getReturnType()),
"IFunc resolver must return a pointer", &GI);
- const Type *ResolverFuncTy =
- GlobalIFunc::getResolverFunctionType(GI.getValueType());
- Check(ResolverTy == ResolverFuncTy->getPointerTo(GI.getAddressSpace()),
+ Check(ResolverTy == PointerType::get(Context, GI.getAddressSpace()),
"IFunc resolver has incorrect type", &GI);
}