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

Unified Diff: src/compiler/graph-visualizer.cc

Issue 1314703005: [turbofan] Fix segfault when using --trace-turbo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-visualizer.cc
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc
index 132442d6add88069a8bb9b146c0c6bd7083a2a0a..74b1eaef10a4c9db28ca49e0254ebbfc3240605c 100644
--- a/src/compiler/graph-visualizer.cc
+++ b/src/compiler/graph-visualizer.cc
@@ -711,6 +711,7 @@ void GraphC1Visualizer::PrintLiveRanges(const char* phase,
void GraphC1Visualizer::PrintLiveRangeChain(TopLevelLiveRange* range,
const char* type) {
+ if (range == nullptr || range->IsEmpty()) return;
int vreg = range->vreg();
for (LiveRange* child = range; child != nullptr; child = child->next()) {
PrintLiveRange(child, type, vreg);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698