Index: runtime/vm/raw_object_snapshot.cc |
diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc |
index d5fb5cf568ef5643dbd1b2c4b982338ee49f2e52..8f82b841bbed50e490966d97a599463a83173579 100644 |
--- a/runtime/vm/raw_object_snapshot.cc |
+++ b/runtime/vm/raw_object_snapshot.cc |
@@ -1189,7 +1189,8 @@ RawLibraryPrefix* LibraryPrefix::ReadFrom(SnapshotReader* reader, |
reader->Read<int16_t>()); |
prefix.StoreNonPointer(&prefix.raw_ptr()->is_deferred_load_, |
reader->Read<bool>()); |
- prefix.StoreNonPointer(&prefix.raw_ptr()->is_loaded_, false); |
+ prefix.StoreNonPointer(&prefix.raw_ptr()->is_loaded_, |
+ !prefix.raw_ptr()->is_deferred_load_); |
// Set all the object fields. |
READ_OBJECT_FIELDS(prefix, |