We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f5dc2 commit 32d7a71Copy full SHA for 32d7a71
SwiftCompilerSources/Sources/SIL/Argument.swift
@@ -591,6 +591,19 @@ public enum ArgumentConvention : CustomStringConvertible {
591
}
592
593
594
+extension BeginAccessInst.AccessKind {
595
+ public func isCompatible(with convention: ArgumentConvention) -> Bool {
596
+ switch self {
597
+ case .`init`, .deinit:
598
+ return false
599
+ case .read:
600
+ return convention.isIndirectIn
601
+ case .modify:
602
+ return convention.isInout
603
+ }
604
605
+}
606
+
607
// Bridging utilities
608
609
extension BridgedArgument {
0 commit comments