| 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 b3bbe792445ed28c17511dc008c53b96b6c5fee1..8627315296a9e223ea58b9d97eb696c85962f711 100644
|
| --- a/runtime/vm/flow_graph_compiler_x64.cc
|
| +++ b/runtime/vm/flow_graph_compiler_x64.cc
|
| @@ -604,7 +604,7 @@ void FlowGraphCompiler::GenerateInstanceOf(intptr_t token_pos,
|
| // time, since an uninstantiated type at compile time could be Object or
|
| // dynamic at run time.
|
| __ CompareObject(RAX, Object::null_object(), PP);
|
| - __ j(EQUAL, &is_not_instance);
|
| + __ j(EQUAL, type.IsNullType() ? &is_instance : &is_not_instance);
|
| }
|
|
|
| // Generate inline instanceof test.
|
|
|