Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index b958be134cf02f14973b9e5319800c6f515bd264..6cb337f97355b639b972590526626fb7c0f17911 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -137,7 +137,7 @@ void InstructionSelector::VisitLoad(Node* node) { |
Node* base = node->InputAt(0); |
Node* index = node->InputAt(1); |
- ArchOpcode opcode; |
+ ArchOpcode opcode = kArchNop; |
switch (load_rep.representation()) { |
case MachineRepresentation::kFloat32: |
opcode = kMips64Lwc1; |
@@ -159,7 +159,7 @@ void InstructionSelector::VisitLoad(Node* node) { |
case MachineRepresentation::kWord64: |
opcode = kMips64Ld; |
break; |
- default: |
+ case MachineRepresentation::kNone: |
UNREACHABLE(); |
return; |
} |
@@ -219,7 +219,7 @@ void InstructionSelector::VisitStore(Node* node) { |
code |= MiscField::encode(static_cast<int>(record_write_mode)); |
Emit(code, 0, nullptr, input_count, inputs, temp_count, temps); |
} else { |
- ArchOpcode opcode; |
+ ArchOpcode opcode = kArchNop; |
switch (rep) { |
case MachineRepresentation::kFloat32: |
opcode = kMips64Swc1; |
@@ -241,7 +241,7 @@ void InstructionSelector::VisitStore(Node* node) { |
case MachineRepresentation::kWord64: |
opcode = kMips64Sd; |
break; |
- default: |
+ case MachineRepresentation::kNone: |
UNREACHABLE(); |
return; |
} |
@@ -1285,7 +1285,7 @@ void InstructionSelector::VisitCheckedLoad(Node* node) { |
Node* const buffer = node->InputAt(0); |
Node* const offset = node->InputAt(1); |
Node* const length = node->InputAt(2); |
- ArchOpcode opcode; |
+ ArchOpcode opcode = kArchNop; |
switch (load_rep.representation()) { |
case MachineRepresentation::kWord8: |
opcode = load_rep.IsSigned() ? kCheckedLoadInt8 : kCheckedLoadUint8; |
@@ -1305,7 +1305,9 @@ void InstructionSelector::VisitCheckedLoad(Node* node) { |
case MachineRepresentation::kFloat64: |
opcode = kCheckedLoadFloat64; |
break; |
- default: |
+ case MachineRepresentation::kBit: |
+ case MachineRepresentation::kTagged: |
+ case MachineRepresentation::kNone: |
UNREACHABLE(); |
return; |
} |
@@ -1332,7 +1334,7 @@ void InstructionSelector::VisitCheckedStore(Node* node) { |
Node* const offset = node->InputAt(1); |
Node* const length = node->InputAt(2); |
Node* const value = node->InputAt(3); |
- ArchOpcode opcode; |
+ ArchOpcode opcode = kArchNop; |
switch (rep) { |
case MachineRepresentation::kWord8: |
opcode = kCheckedStoreWord8; |
@@ -1352,7 +1354,9 @@ void InstructionSelector::VisitCheckedStore(Node* node) { |
case MachineRepresentation::kFloat64: |
opcode = kCheckedStoreFloat64; |
break; |
- default: |
+ case MachineRepresentation::kBit: |
+ case MachineRepresentation::kTagged: |
+ case MachineRepresentation::kNone: |
UNREACHABLE(); |
return; |
} |