Commit 708dde77 authored by mtrofin's avatar mtrofin Committed by Commit bot

[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}
parent 47d42a9a
......@@ -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;
......
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