Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 11cc901b38ccfccf7a3607f99e1088b47b7f4ac9..72192495be610b191088b5db1b041a940d5c0b10 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -790,6 +790,13 @@ void HInstruction::Verify() { |
// HValue::DataEquals. The default implementation is UNREACHABLE. We |
// don't actually care whether DataEquals returns true or false here. |
if (CheckFlag(kUseGVN)) DataEquals(this); |
+ |
+ // Verify that all uses are in the graph. |
+ for (HUseIterator use = uses(); !use.Done(); use.Advance()) { |
+ if (use.value()->IsInstruction()) { |
+ ASSERT(HInstruction::cast(use.value())->IsLinked()); |
+ } |
+ } |
} |
#endif |