[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}
This commit is contained in:
mtrofin 2015-09-03 06:23:55 -07:00 committed by Commit bot
parent 47d42a9ac1
commit 708dde7777

View File

@ -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;