diff options
author | Nikita Popov <npopov@redhat.com> | 2022-01-27 12:36:25 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-01-27 12:36:25 +0100 |
commit | 4d9f6ab3054bdbe07982333b31974b357586acca (patch) | |
tree | 3c50340011428337ff6461a272facc8e61e7686b /llvm/lib/IR/Function.cpp | |
parent | d839afe3f9a04288f20698c3a28c096a1822f3a1 (diff) |
[IR] Handle opaque pointers in PtrToArgument mangling
It appears that this mangling type is currently unused. Make it
compatible with opaque pointers in case it becomes used again...
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 72d8f9e1547f..1e874d7afa79 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -1575,7 +1575,7 @@ static bool matchIntrinsicType( Type * ReferenceType = ArgTys[D.getArgumentNumber()]; PointerType *ThisArgType = dyn_cast<PointerType>(Ty); return (!ThisArgType || - ThisArgType->getPointerElementType() != ReferenceType); + !ThisArgType->isOpaqueOrPointeeTypeMatches(ReferenceType)); } case IITDescriptor::PtrToElt: { if (D.getArgumentNumber() >= ArgTys.size()) |