| 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 235113269e42668b1b34b43e08acb371511d10fa..2b11417b29561e4b6dcf587e5775c26efa26b06a 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder.dart
|
| @@ -1239,7 +1239,7 @@ class SsaBuilder extends ast.Visitor
|
| if (!isNativeUpgradeFactory) {
|
| // Create the runtime type information, if needed.
|
| bool hasRtiInput = false;
|
| - if (rtiNeed.classNeedsRtiField(classElement)) {
|
| + if (rtiNeed.classNeedsRtiField(classElement.declaration)) {
|
| // Read the values of the type arguments and create a
|
| // HTypeInfoExpression to set on the newly create object.
|
| hasRtiInput = true;
|
| @@ -1378,7 +1378,7 @@ class SsaBuilder extends ast.Visitor
|
| // may contain references to type variables.
|
| var enclosing = element.enclosingElement;
|
| if ((element.isConstructor || element.isGenerativeConstructorBody) &&
|
| - rtiNeed.classNeedsRti(enclosing)) {
|
| + rtiNeed.classNeedsRti(enclosing.declaration)) {
|
| enclosing.typeVariables
|
| .forEach((ResolutionTypeVariableType typeVariable) {
|
| HParameterValue param =
|
|
|