Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 15084) |
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy) |
@@ -373,6 +373,9 @@ |
variableNames = allocator.names; |
shouldGroupVarDeclarations = allocator.names.numberOfVariables > 1; |
+ // Don't register a return type for lazily initialized variables. |
Søren Gjesse
2012/11/20 08:40:27
Maybe assert that work.element is either FunctionE
|
+ if (work.element is! FunctionElement) return; |
+ |
// Register return types to the backend. |
graph.exit.predecessors.forEach((HBasicBlock block) { |
HInstruction last = block.last; |