[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...
This commit is contained in:
Nikita Popov 2022-01-27 12:36:25 +01:00
parent d839afe3f9
commit 4d9f6ab305
1 changed files with 1 additions and 1 deletions

View File

@ -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())