Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Unified Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2908253003: Handle null literal in compile_from_dill (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index b7d05ebf4b966ef5ff937bd28c50aba96799b212..75a71a9a056154629785839653b4eebac47ec2d3 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -831,7 +831,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
assert(_targetFunction != null && _targetFunction is ir.FunctionNode);
returnStatement.expression.accept(this);
value = pop();
- DartType returnType = astAdapter.getFunctionReturnType(_targetFunction);
+ DartType returnType = _elementMap.getFunctionType(_targetFunction);
if (_targetFunction.asyncMarker == ir.AsyncMarker.Async) {
if (options.enableTypeAssertions &&
!isValidAsyncReturnType(returnType)) {

Powered by Google App Engine
This is Rietveld 408576698