Commit 2cf9053a authored by mtrofin's avatar mtrofin Committed by Commit bot

[turbofan] Fix segfault when using --trace-turbo.

BUG=

Review URL: https://codereview.chromium.org/1314703005

Cr-Commit-Position: refs/heads/master@{#30584}
parent d9fd711a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment