Index: test/cctest/compiler/test-osr.cc |
diff --git a/test/cctest/compiler/test-osr.cc b/test/cctest/compiler/test-osr.cc |
index e3963901a53584bfa2357609ad7bc9e37b8d2a84..83e0fd0516221ad0bb6976c71d28f8df1a795b5d 100644 |
--- a/test/cctest/compiler/test-osr.cc |
+++ b/test/cctest/compiler/test-osr.cc |
@@ -122,7 +122,12 @@ class OsrDeconstructorTester : public HandleAndZoneScope { |
CHECK(!nodes.IsLive(osr_normal_entry)); |
CHECK(!nodes.IsLive(osr_loop_entry)); |
// No dangling nodes should be left over. |
- CHECK_EQ(0u, nodes.gray.size()); |
+ for (Node* const node : nodes.live) { |
+ for (Node* const use : node->uses()) { |
+ CHECK(std::find(nodes.live.begin(), nodes.live.end(), use) != |
+ nodes.live.end()); |
+ } |
+ } |
} |
}; |