Index: src/snapshot/deserializer.cc |
diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc |
index 7a2df28f62020c382056452b8e7115b752cc3763..b90a2c5b105ca7ffe320bf2f0369b5fc295aa8dc 100644 |
--- a/src/snapshot/deserializer.cc |
+++ b/src/snapshot/deserializer.cc |
@@ -414,7 +414,7 @@ Address Deserializer::Allocate(int space_index, int size) { |
LargeObjectSpace* lo_space = isolate_->heap()->lo_space(); |
Executability exec = static_cast<Executability>(source_.Get()); |
AllocationResult result = lo_space->AllocateRaw(size, exec); |
- HeapObject* obj = HeapObject::cast(result.ToObjectChecked()); |
+ HeapObject* obj = result.ToObjectChecked(); |
deserialized_large_objects_.Add(obj); |
return obj->address(); |
} else if (space_index == MAP_SPACE) { |