File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
SwiftCompilerSources/Sources/Optimizer/PassManager Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -300,11 +300,17 @@ extension AllocRefInstBase {
300
300
extension UseList {
301
301
func replaceAll( with replacement: Value , _ context: some MutatingContext ) {
302
302
for use in self {
303
- use. instruction . setOperand ( at : use . index , to: replacement, context)
303
+ use. set ( to: replacement, context)
304
304
}
305
305
}
306
306
}
307
307
308
+ extension Operand {
309
+ func set( to value: Value , _ context: some MutatingContext ) {
310
+ instruction. setOperand ( at: index, to: value, context)
311
+ }
312
+ }
313
+
308
314
extension Instruction {
309
315
func setOperand( at index : Int , to value: Value , _ context: some MutatingContext ) {
310
316
if self is FullApplySite && index == ApplyOperands . calleeOperandIndex {
You can’t perform that action at this time.
0 commit comments