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 79fe8ba commit b1601a9Copy full SHA for b1601a9
SwiftCompilerSources/Sources/SIL/ApplySite.swift
@@ -69,10 +69,11 @@ public struct ApplyOperandConventions : Collection {
69
guard let argIdx = calleeArgumentIndex(of: operand) else {
70
return nil
71
}
72
- guard argIdx >= calleeArgumentConventions.firstParameterIndex else {
+ let firstParamIdx = calleeArgumentConventions.firstParameterIndex
73
+ guard argIdx >= firstParamIdx else {
74
75
- return calleeArgumentConventions.originalParameters[argIdx]
76
+ return calleeArgumentConventions.originalParameters[argIdx - firstParamIdx]
77
78
79
public var firstParameterOperandIndex: Int {
0 commit comments