From 708dde777714eacc48936e85828374549e47fe0a Mon Sep 17 00:00:00 2001 From: mtrofin Date: Thu, 3 Sep 2015 06:23:55 -0700 Subject: [PATCH] [turbofan] Small fix in live range printer. Fixed ranges don't have operands assigned, for example. BUG= Review URL: https://codereview.chromium.org/1326643006 Cr-Commit-Position: refs/heads/master@{#30561} --- src/compiler/register-allocator.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc index 731393bcb0..ecf10ae5d6 100644 --- a/src/compiler/register-allocator.cc +++ b/src/compiler/register-allocator.cc @@ -1058,8 +1058,10 @@ std::ostream& operator<<(std::ostream& os, PrintableInstructionOperand pio; pio.register_configuration_ = printable_range.register_configuration_; while (use_pos != nullptr) { - pio.op_ = *use_pos->operand(); - os << pio << use_pos->pos() << " "; + if (use_pos->HasOperand()) { + pio.op_ = *use_pos->operand(); + os << pio << use_pos->pos() << " "; + } use_pos = use_pos->next(); } os << std::endl;