Index: src/compiler/register-allocator.cc |
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc |
index 731393bcb0097cd36cd22b564d278a990ce40608..ecf10ae5d64d9a44df3eead45b36bf98d080cf57 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; |