Index: runtime/vm/flow_graph_compiler_mips.cc |
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc |
index 925796dcae2603319586a36f63c53c81ec63d605..fb4113af0811001c49da4736ee987e06be6e1f3a 100644 |
--- a/runtime/vm/flow_graph_compiler_mips.cc |
+++ b/runtime/vm/flow_graph_compiler_mips.cc |
@@ -591,7 +591,8 @@ void FlowGraphCompiler::GenerateInstanceOf(intptr_t token_pos, |
// We can only inline this null check if the type is instantiated at compile |
// time, since an uninstantiated type at compile time could be Object or |
// dynamic at run time. |
- __ BranchEqual(A0, Object::null_object(), &is_not_instance); |
+ __ BranchEqual(A0, Object::null_object(), |
+ type.IsNullType() ? &is_instance : &is_not_instance); |
} |
// Generate inline instanceof test. |