forked from OSchip/llvm-project
[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:
parent
d839afe3f9
commit
4d9f6ab305
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue