Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1513)

Unified Diff: src/compiler/node.cc

Issue 2134443002: [turbofan] Fixed segmentation fault while printing TurboFan node (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fixed segmentation fault while printing TurboFan node Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 << ")";
}
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698