| Index: runtime/vm/flow_graph_compiler_arm64.cc
|
| diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc
|
| index ffd907bf6dd5823e41b2ded665d81377fcaa2b22..913cd2abd0000b764c0e411696b3f2f949124fe5 100644
|
| --- a/runtime/vm/flow_graph_compiler_arm64.cc
|
| +++ b/runtime/vm/flow_graph_compiler_arm64.cc
|
| @@ -596,7 +596,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(R0, Object::null_object(), PP);
|
| - __ b(&is_not_instance, EQ);
|
| + __ b(type.IsNullType() ? &is_instance : &is_not_instance, EQ);
|
| }
|
|
|
| // Generate inline instanceof test.
|
|
|