| Index: runtime/vm/flow_graph_builder.cc
|
| diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
|
| index d9188c7e6c3f89ab3c2ef1bd248ff31bc8cbb0e8..9bbd9e083764eb564c0cd36bf693eccea4db1e20 100644
|
| --- a/runtime/vm/flow_graph_builder.cc
|
| +++ b/runtime/vm/flow_graph_builder.cc
|
| @@ -1660,7 +1660,8 @@ void EffectGraphVisitor::BuildTypeTest(ComparisonNode* node) {
|
| const bool negate_result = (node->kind() == Token::kISNOT);
|
| // All objects are instances of type T if Object type is a subtype of type T.
|
| const Type& object_type = Type::Handle(Z, Type::ObjectType());
|
| - if (type.IsInstantiated() && object_type.IsSubtypeOf(type, NULL)) {
|
| + if (type.IsInstantiated() &&
|
| + object_type.IsSubtypeOf(type, NULL, Heap::kOld)) {
|
| // Must evaluate left side.
|
| EffectGraphVisitor for_left_value(owner());
|
| node->left()->Visit(&for_left_value);
|
|
|