mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSFix] Add a tailored fix for invalid Swift -> C pointer conversions
This is a skeleton of a fix that would be used to diagnose situations when Swift -> C pointer conversion was attempted on a Swift function.
This commit is contained in:
@@ -11927,6 +11927,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyFixConstraint(
|
||||
case FixKind::AddSendableAttribute:
|
||||
case FixKind::DropThrowsAttribute:
|
||||
case FixKind::DropAsyncAttribute:
|
||||
case FixKind::AllowSwiftToCPointerConversion:
|
||||
llvm_unreachable("handled elsewhere");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user