| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 44261365800636ce2ef3dd96f134bdb548af0821..38c4616490a320d9b4f81cf91083fa36c014e2e6 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -5245,7 +5245,7 @@ bool Function::HasCode() const {
|
|
|
|
|
| void Function::ClearCode() const {
|
| - ASSERT(ic_data_array() == Array::null());
|
| + ASSERT((usage_counter() != 0) || (ic_data_array() == Array::null()));
|
| StorePointer(&raw_ptr()->unoptimized_code_, Code::null());
|
| SetInstructions(Code::Handle(StubCode::LazyCompile_entry()->code()));
|
| }
|
|
|