[Hexagon] Silence -Wuninitialized warning from GCC 5.4, NFC

Patch by Kim Gräsman.

Differential Revision: https://reviews.llvm.org/D50623

llvm-svn: 339576
This commit is contained in:
Krzysztof Parzyszek 2018-08-13 15:08:25 +00:00
parent 15acf26c5d
commit cce15c76d3
1 changed files with 4 additions and 0 deletions

View File

@ -1985,6 +1985,10 @@ bool BitSimplification::genStoreImmediate(MachineInstr *MI) {
case Hexagon::S2_storeri_io:
V = int32_t(U);
break;
default:
// Opc is already checked above to be one of the three store instructions.
// This silences a -Wuninitialized false positive on GCC 5.4.
llvm_unreachable("Unexpected store opcode");
}
if (!isInt<8>(V))
return false;