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 5e1520e commit 8a71844Copy full SHA for 8a71844
SwiftCompilerSources/Sources/Optimizer/FunctionPasses/ComputeSideEffects.swift
@@ -153,10 +153,10 @@ private struct CollectedEffects {
153
// handleApply above is sufficient. And, if they are not applied
154
// in this function, then they are never applied.
155
if !pa.isOnStack {
156
- // the callee and its arguments are all captured...
157
- for operand in pa.operands {
158
- if operand.value.type.isAddress {
159
- addEffects(.read, to: operand.value)
+ // callee is never an address.
+ for argument in pa.arguments {
+ if argument.type.isAddress {
+ addEffects(.read, to: argument)
160
}
161
162
0 commit comments