@@ -202,7 +202,7 @@ enum ForwardingUseResult: CustomStringConvertible {
202
202
///
203
203
/// Minimal requirements:
204
204
/// needWalk(for value: Value) -> Bool
205
- /// nonForwardingUse(_ operand: Operand) -> WalkResult
205
+ /// nonForwardingUse(of operand: Operand) -> WalkResult
206
206
/// deadValue(_ value: Value, using operand: Operand?) -> WalkResult
207
207
///
208
208
/// Start walking:
@@ -217,7 +217,7 @@ protocol ForwardingDefUseWalker {
217
217
/// A nonForwarding use does not forward ownership, but may
218
218
/// propagate the lifetime in other ways, such as an interior
219
219
/// pointer.
220
- mutating func nonForwardingUse( _ operand: Operand ) -> WalkResult
220
+ mutating func nonForwardingUse( of operand: Operand ) -> WalkResult
221
221
222
222
/// Report any initial or forwarded value with no uses. Only relevant for
223
223
/// guaranteed values or incomplete OSSA. This could be a dead
@@ -249,8 +249,9 @@ extension ForwardingDefUseWalker {
249
249
mutating func walkDownUsesDefault( forwarding value: Value ,
250
250
using operand: Operand ? )
251
251
-> WalkResult {
252
- if !needWalk( for: value) { return . continueWalk }
253
-
252
+ if !needWalk( for: value) {
253
+ return . continueWalk
254
+ }
254
255
var hasUse = false
255
256
for use in value. uses where !use. isTypeDependent {
256
257
if walkDown ( operand: use) == . abortWalk {
@@ -280,7 +281,7 @@ extension ForwardingDefUseWalker {
280
281
if let phi = Phi ( using: operand) {
281
282
return walkDownUses ( of: phi. value, using: operand)
282
283
}
283
- return nonForwardingUse ( operand)
284
+ return nonForwardingUse ( of : operand)
284
285
}
285
286
}
286
287
@@ -313,7 +314,7 @@ private struct VisitForwardedUses : ForwardingDefUseWalker {
313
314
visitedValues. insert ( value)
314
315
}
315
316
316
- mutating func nonForwardingUse( _ operand: Operand ) -> WalkResult {
317
+ mutating func nonForwardingUse( of operand: Operand ) -> WalkResult {
317
318
return visitor ( . operand( operand) )
318
319
}
319
320
0 commit comments