Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 30945) |
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy) |
@@ -649,7 +649,7 @@ |
// Remove locals that are not in all handlers. |
directLocals = new Map<Element, HInstruction>(); |
joinedLocals.forEach((element, instruction) { |
- if (instruction is HPhi |
+ if (element != closureData.thisElement |
&& instruction.inputs.length != localsHandlers.length) { |
joinBlock.removePhi(instruction); |
} else { |