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

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

Issue 2260993002: Don't add empty typeinfo lists (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder.dart
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
index 65af5faef8cf88617965bb74a2ed2e3315ab6f99..42b2f5af5a060a1d66021d5b6c944be23d337a71 100644
--- a/pkg/compiler/lib/src/ssa/builder.dart
+++ b/pkg/compiler/lib/src/ssa/builder.dart
@@ -2326,7 +2326,8 @@ class SsaBuilder extends ast.Visitor
}
removeInlinedInstantiation(type);
// Create the runtime type information, if needed.
- if (backend.classNeedsRti(classElement)) {
+ if (classElement.typeVariables.isNotEmpty &&
+ backend.classNeedsRti(classElement)) {
// Read the values of the type arguments and create a HTypeInfoExpression
// to set on the newly create object. We can identify the case where the
// expression would be of the form:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698