Chromium Code Reviews| Index: runtime/vm/snapshot.cc |
| =================================================================== |
| --- runtime/vm/snapshot.cc (revision 23933) |
| +++ runtime/vm/snapshot.cc (working copy) |
| @@ -795,7 +795,8 @@ |
| if (kind_ == Snapshot::kFull) { |
| result->SetCreatedFromSnapshot(); |
| } else if (result->IsCanonical()) { |
| - *result = result->Canonicalize(); |
| + *result = result->CheckAndCanonicalize(NULL); |
| + ASSERT(!result->IsNull()); |
| } |
| return result->raw(); |
| } |