| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 60413f33564ed2c450c5630cc2461f49665ee644..6ae0afa6adff4d260fff1e410c61d1274fda39e0 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -1050,7 +1050,8 @@ DEFINE_RUNTIME_ENTRY(MegamorphicCacheMissHandler, 3) {
|
| if (instructions.IsNull()) return;
|
|
|
| cache.EnsureCapacity();
|
| - const Smi& class_id = Smi::Handle(Smi::New(is_null ? kNullCid : cls.id()));
|
| + const Smi& class_id = Smi::Handle(Smi::New(
|
| + is_null ? static_cast<intptr_t>(kNullCid) : cls.id()));
|
| cache.Insert(class_id, target);
|
| return;
|
| }
|
|
|