mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user