| Index: pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
|
| index a6017cbb0454226ec6fa6f9e4aa07b6abc4c049f..422db14ac1ace1f90c0a3d38c4695e691e328a81 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
|
| @@ -138,8 +138,7 @@ class ShrinkingReducer extends Pass {
|
|
|
| // Substitute the invocation argument for the continuation parameter.
|
| for (int i = 0; i < invoke.arguments.length; i++) {
|
| - Reference argRef = invoke.arguments[i];
|
| - argRef.definition.substituteFor(cont.parameters[i]);
|
| + cont.parameters[i].replaceUsesWith(invoke.arguments[i].definition);
|
| }
|
|
|
| // Perform bookkeeping on substituted body and scan for new redexes.
|
| @@ -168,7 +167,7 @@ class ShrinkingReducer extends Pass {
|
| Continuation wrappedCont = invoke.continuation.definition;
|
|
|
| // Replace all occurrences with the wrapped continuation.
|
| - wrappedCont.substituteFor(cont);
|
| + cont.replaceUsesWith(wrappedCont);
|
|
|
| // Perform bookkeeping on removed body and scan for new redexes.
|
| new _RemovalVisitor(_worklist).visit(cont);
|
|
|