[ConstraintSystem] Add new conversion kind - ArrayToCPointer

It's `ArrayToPointer` conversion that has PointerToCPointer
semantics for (un-)signed integer element types.
This commit is contained in:
Pavel Yaskevich
2023-03-09 11:04:50 -08:00
parent ad24fe1d44
commit 438ee330f1
6 changed files with 12 additions and 2 deletions

View File

@@ -13436,6 +13436,9 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
case ConversionRestrictionKind::PointerToCPointer:
return simplifyPointerToCPointerRestriction(type1, type2, flags, locator);
case ConversionRestrictionKind::ArrayToCPointer:
llvm_unreachable("not yet implemented");
case ConversionRestrictionKind::InoutToCPointer: {
SmallVector<Type, 2> optionals;