Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index cc952f9a35ec27e8cf9d5fd60c965b9af1c05e43..0e8df3e4481eb86fd5453454375d61377aceefbe 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -785,7 +785,7 @@ void InstructionSelector::VisitSwitch(Node* node, const SwitchInfo& sw) { |
lookup_space_cost + 3 * lookup_time_cost && |
sw.min_value > std::numeric_limits<int32_t>::min()) { |
InstructionOperand index_operand = value_operand; |
- if (min_value) { |
+ if (sw.min_value) { |
index_operand = g.TempRegister(); |
Emit(kMipsSub, index_operand, value_operand, |
g.TempImmediate(sw.min_value)); |