Index: src/compiler/node.cc |
diff --git a/src/compiler/node.cc b/src/compiler/node.cc |
index 198c3530847f6124ca8eb39c57431a61875c6a96..e4e22b402357ef1dbe7f0984612eff5081c2e070 100644 |
--- a/src/compiler/node.cc |
+++ b/src/compiler/node.cc |
@@ -369,7 +369,11 @@ std::ostream& operator<<(std::ostream& os, const Node& n) { |
os << "("; |
for (int i = 0; i < n.InputCount(); ++i) { |
if (i != 0) os << ", "; |
- os << n.InputAt(i)->id(); |
+ if (n.InputAt(i)) { |
+ os << n.InputAt(i)->id(); |
+ } else { |
+ os << "null"; |
+ } |
} |
os << ")"; |
} |