| Index: pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/redundant_phi.dart b/pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| index 183f8e36ff2e6fe9815e65b94389b4d851a62ccc..7f16af9cfea5f60f626c48cf7d0cb55ce02eda1c 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| @@ -138,7 +138,7 @@ class RedundantPhiEliminator extends TrampolineRecursiveVisitor implements Pass
|
| // * and implicitly remove param from continuation signature and
|
| // invocations by not incrementing `dst`. References of removed
|
| // arguments are unlinked to keep definition usages up to date.
|
| - uniqueDefinition.substituteFor(oldDefinition);
|
| + oldDefinition.replaceUsesWith(uniqueDefinition);
|
| for (InvokeContinuation invoke in invokes) {
|
| invoke.arguments[src].unlink();
|
| }
|
| @@ -191,7 +191,7 @@ void _moveIntoScopeOf(LetCont letCont, Definition definition) {
|
|
|
| /// Ensures [continuation] has its own LetCont binding by creating
|
| /// a new LetCont below its current binding, if necessary.
|
| -///
|
| +///
|
| /// Returns the LetCont that now binds [continuation].
|
| LetCont _makeUniqueBinding(Continuation continuation) {
|
| LetCont letCont = continuation.parent;
|
|
|