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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2718513002: Void is not required to be `null` anymore. (Closed)
Patch Set: Fix more places in the VM. Created 3 years, 10 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/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 7ffcc12e4d0ef0b46f818d0b29d1c66bdddb2566..489a4918fdb9115fcbae36a75f9d2f4f18bb467d 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2078,6 +2078,7 @@ class JavaScriptImpactTransformer extends ImpactTransformer {
void onIsCheckForCodegen(
ResolutionDartType type, TransformedWorldImpact transformed) {
if (type.isDynamic) return;
+ if (type.isVoid) return;
type = type.unaliased;
backendUsage.registerBackendImpact(transformed, impacts.typeCheck);

Powered by Google App Engine
This is Rietveld 408576698