Index: runtime/vm/jit_optimizer.cc |
diff --git a/runtime/vm/jit_optimizer.cc b/runtime/vm/jit_optimizer.cc |
index f4d875764247d3588c74141c0ec99e527712da83..172f5d241645708f30d10b589c1c408f759a8971 100644 |
--- a/runtime/vm/jit_optimizer.cc |
+++ b/runtime/vm/jit_optimizer.cc |
@@ -2391,7 +2391,7 @@ bool JitOptimizer::TypeCheckAsClassEquality(const AbstractType& type) { |
type_class.ToCString()); |
} |
if (FLAG_use_cha_deopt) { |
- thread()->cha()->AddToLeafClasses(type_class); |
+ thread()->cha()->AddToGuardedClasses(type_class, /*subclass_count=*/0); |
} |
} else { |
return false; |