Index: runtime/vm/flow_graph_compiler_x64.cc |
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc |
index 42b3677bc82c3adf48a372fd084373708321f716..608e74da6e180a46bc6427cf15e3c8712405a29a 100644 |
--- a/runtime/vm/flow_graph_compiler_x64.cc |
+++ b/runtime/vm/flow_graph_compiler_x64.cc |
@@ -461,7 +461,7 @@ RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest( |
FieldAddress(RDX, TypeArguments::type_at_offset(type_param.index()))); |
// RDI: Concrete type of type. |
// Check if type argument is dynamic. |
- __ CompareObject(RDI, Type::ZoneHandle(zone(), Type::DynamicType())); |
+ __ CompareObject(RDI, Object::dynamic_type()); |
__ j(EQUAL, is_instance_lbl); |
const Type& object_type = Type::ZoneHandle(zone(), Type::ObjectType()); |
__ CompareObject(RDI, object_type); |