Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 1dc38df0d965c89d50a5ffa3e8db5453295e9845..aca9dbcba3642a9b2acd60153530865d99254f06 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -539,13 +539,13 @@ void GraphC1Visualizer::PrintLiveRange(const LiveRange* range, const char* type, |
os_ << vreg << ":" << range->relative_id() << " " << type; |
if (range->HasRegisterAssigned()) { |
AllocatedOperand op = AllocatedOperand::cast(range->GetAssignedOperand()); |
- if (op.IsFPRegister()) { |
- DoubleRegister assigned_reg = op.GetDoubleRegister(); |
- os_ << " \"" << assigned_reg.ToString() << "\""; |
+ if (op.IsRegister()) { |
+ os_ << " \"" << op.GetRegister().ToString() << "\""; |
+ } else if (op.IsDoubleRegister()) { |
+ os_ << " \"" << op.GetDoubleRegister().ToString() << "\""; |
} else { |
- DCHECK(op.IsRegister()); |
- Register assigned_reg = op.GetRegister(); |
- os_ << " \"" << assigned_reg.ToString() << "\""; |
+ DCHECK(op.IsFloatRegister()); |
+ os_ << " \"" << op.GetFloatRegister().ToString() << "\""; |
} |
} else if (range->spilled()) { |
const TopLevelLiveRange* top = range->TopLevel(); |