Index: pkg/compiler/lib/src/ssa/codegen.dart |
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart |
index 74b53bde41578b298669da83c08c7f3790e84b7b..c92ac88f4d6cf84a75f8371823a809eb5b5b61df 100644 |
--- a/pkg/compiler/lib/src/ssa/codegen.dart |
+++ b/pkg/compiler/lib/src/ssa/codegen.dart |
@@ -102,7 +102,7 @@ class SsaCodeGeneratorTask extends CompilerTask { |
return measure(() { |
MethodElement element = work.element; |
if (element.asyncMarker != AsyncMarker.SYNC) { |
- work.registry.registerAsyncMarker(element); |
+ work.registry.registerAsyncMarker(element.asyncMarker); |
} |
SsaCodeGenerator codegen = new SsaCodeGenerator( |
backend.compiler.options, |