Index: src/snapshot/serialize.cc |
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc |
index 76ef75d57db495118f0b78e5da4d8396fc7594dd..57092e1b46238336fff16a11e9a510324fbceea4 100644 |
--- a/src/snapshot/serialize.cc |
+++ b/src/snapshot/serialize.cc |
@@ -1934,8 +1934,7 @@ |
// Repeats are not subject to the write barrier so we can only use |
// immortal immovable root members. They are never in new space. |
if (current != start && root_index != RootIndexMap::kInvalidRootIndex && |
- Heap::RootIsImmortalImmovable( |
- static_cast<Heap::RootListIndex>(root_index)) && |
+ Heap::RootIsImmortalImmovable(root_index) && |
current_contents == current[-1]) { |
DCHECK(!serializer_->isolate()->heap()->InNewSpace(current_contents)); |
int repeat_count = 1; |