[X86] Remove a couple returns after llvm_unreachables. NFC

llvm-svn: 261979
This commit is contained in:
Craig Topper 2016-02-26 05:29:39 +00:00
parent a11be0be89
commit 4d187630de
1 changed files with 2 additions and 6 deletions

View File

@ -1012,9 +1012,7 @@ std::unique_ptr<X86Operand> X86AsmParser::DefaultMemDIOperand(SMLoc Loc) {
bool X86AsmParser::IsSIReg(unsigned Reg) { bool X86AsmParser::IsSIReg(unsigned Reg) {
switch (Reg) { switch (Reg) {
default: default: llvm_unreachable("Only (R|E)SI and (R|E)DI are expected!");
llvm_unreachable("Only (R|E)SI and (R|E)DI are expected!");
return false;
case X86::RSI: case X86::RSI:
case X86::ESI: case X86::ESI:
case X86::SI: case X86::SI:
@ -1029,9 +1027,7 @@ bool X86AsmParser::IsSIReg(unsigned Reg) {
unsigned X86AsmParser::GetSIDIForRegClass(unsigned RegClassID, unsigned Reg, unsigned X86AsmParser::GetSIDIForRegClass(unsigned RegClassID, unsigned Reg,
bool IsSIReg) { bool IsSIReg) {
switch (RegClassID) { switch (RegClassID) {
default: default: llvm_unreachable("Unexpected register class");
llvm_unreachable("Unexpected register class");
return Reg;
case X86::GR64RegClassID: case X86::GR64RegClassID:
return IsSIReg ? X86::RSI : X86::RDI; return IsSIReg ? X86::RSI : X86::RDI;
case X86::GR32RegClassID: case X86::GR32RegClassID: