| 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:
|
|
|