| Index: runtime/vm/flow_graph_compiler_ia32.cc
|
| diff --git a/runtime/vm/flow_graph_compiler_ia32.cc b/runtime/vm/flow_graph_compiler_ia32.cc
|
| index 3b8320226455c67aaa4935139160611c35f73d48..5284273d9164930d262af4dc95036903c900f36b 100644
|
| --- a/runtime/vm/flow_graph_compiler_ia32.cc
|
| +++ b/runtime/vm/flow_graph_compiler_ia32.cc
|
| @@ -613,7 +613,7 @@ void FlowGraphCompiler::GenerateInstanceOf(intptr_t token_pos,
|
| // time, since an uninstantiated type at compile time could be Object or
|
| // dynamic at run time.
|
| __ cmpl(EAX, raw_null);
|
| - __ j(EQUAL, &is_not_instance);
|
| + __ j(EQUAL, type.IsNullType() ? &is_instance : &is_not_instance);
|
| }
|
|
|
| // Generate inline instanceof test.
|
|
|