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