Index: runtime/vm/snapshot.cc |
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc |
index 6bce49759d8c85b5d296bb4135e99689163bdbab..513ac253b794da972742f1a58c0bfdf32f714d84 100644 |
--- a/runtime/vm/snapshot.cc |
+++ b/runtime/vm/snapshot.cc |
@@ -1129,11 +1129,9 @@ void SnapshotReader::ArrayReadFrom(const Array& result, |
result.SetTypeArguments(*TypeArgumentsHandle()); |
bool is_canonical = RawObject::IsCanonical(tags); |
- Object& obj = Object::Handle(isolate()); |
for (intptr_t i = 0; i < len; i++) { |
*PassiveObjectHandle() = is_canonical ? ReadObjectImpl() : ReadObjectRef(); |
- obj = (*PassiveObjectHandle()).raw(); |
result.SetAt(i, *PassiveObjectHandle()); |
} |
} |