| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index 46aeb72b2d2a968a766aca48655943621ce10861..9c3323befaff4982746299c4b720d1bd4cba8aae 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -1227,7 +1227,7 @@ void ValueGraphVisitor::VisitTypeNode(TypeNode* node) {
|
| }
|
| const TokenPosition token_pos = node->token_pos();
|
| Value* instantiator_type_arguments = NULL;
|
| - if (type.IsInstantiated(kClass)) {
|
| + if (type.IsInstantiated(kCurrentClass)) {
|
| instantiator_type_arguments = BuildNullValue(token_pos);
|
| } else {
|
| instantiator_type_arguments = BuildInstantiatorTypeArguments(token_pos);
|
| @@ -1421,7 +1421,7 @@ void ValueGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) {
|
| PushArgumentInstr* EffectGraphVisitor::PushInstantiatorTypeArguments(
|
| const AbstractType& type,
|
| TokenPosition token_pos) {
|
| - if (type.IsInstantiated(kClass)) {
|
| + if (type.IsInstantiated(kCurrentClass)) {
|
| return PushArgument(BuildNullValue(token_pos));
|
| } else {
|
| Value* instantiator_type_args = BuildInstantiatorTypeArguments(token_pos);
|
| @@ -1457,7 +1457,7 @@ AssertAssignableInstr* EffectGraphVisitor::BuildAssertAssignable(
|
| // Build the type check computation.
|
| Value* instantiator_type_arguments = NULL;
|
| Value* function_type_arguments = NULL;
|
| - if (dst_type.IsInstantiated(kClass)) {
|
| + if (dst_type.IsInstantiated(kCurrentClass)) {
|
| instantiator_type_arguments = BuildNullValue(token_pos);
|
| } else {
|
| instantiator_type_arguments = BuildInstantiatorTypeArguments(token_pos);
|
|
|