Index: test/cctest/heap/test-spaces.cc |
diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc |
index cefdea76b35ae91ec3a2829477781774a00abcda..fb05c98400dd16a2f28e60bcc52d2250ae0f20df 100644 |
--- a/test/cctest/heap/test-spaces.cc |
+++ b/test/cctest/heap/test-spaces.cc |
@@ -368,9 +368,9 @@ TEST(NewSpace) { |
CHECK(new_space.HasBeenSetUp()); |
while (new_space.Available() >= kMaxRegularHeapObjectSize) { |
- Object* obj = new_space.AllocateRawUnaligned(kMaxRegularHeapObjectSize) |
- .ToObjectChecked(); |
- CHECK(new_space.Contains(HeapObject::cast(obj))); |
+ CHECK(new_space.Contains( |
+ new_space.AllocateRawUnaligned(kMaxRegularHeapObjectSize) |
+ .ToObjectChecked())); |
} |
new_space.TearDown(); |