| Index: runtime/vm/clustered_snapshot.cc
|
| diff --git a/runtime/vm/clustered_snapshot.cc b/runtime/vm/clustered_snapshot.cc
|
| index a5346975c0b9972b38066db3c30421f50ddb3e45..29e64aa77857168d5e7bf118377de8a32b79d865 100644
|
| --- a/runtime/vm/clustered_snapshot.cc
|
| +++ b/runtime/vm/clustered_snapshot.cc
|
| @@ -1599,9 +1599,9 @@ class CodeSerializationCluster : public SerializationCluster {
|
| FATAL("Cannot serialize code with embedded pointers");
|
| }
|
| if (kind == Snapshot::kFullAOT) {
|
| - // No disabled code in precompilation.
|
| - NOT_IN_PRECOMPILED(ASSERT(code->ptr()->instructions_ ==
|
| - code->ptr()->active_instructions_));
|
| + if (code->ptr()->instructions_ != code->ptr()->active_instructions_) {
|
| + s->UnexpectedObject(code, "Disabled code");
|
| + }
|
| }
|
|
|
| RawInstructions* instr = code->ptr()->instructions_;
|
|
|