This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1791,28 +1791,28 @@ bool X86FastISel::X86SelectShift(const Instruction *I) {
1791
1791
CReg = X86::CX;
1792
1792
RC = &X86::GR16RegClass;
1793
1793
switch (I->getOpcode ()) {
1794
+ default : llvm_unreachable (" Unexpected shift opcode" );
1794
1795
case Instruction::LShr: OpReg = X86::SHR16rCL; break ;
1795
1796
case Instruction::AShr: OpReg = X86::SAR16rCL; break ;
1796
1797
case Instruction::Shl: OpReg = X86::SHL16rCL; break ;
1797
- default : return false ;
1798
1798
}
1799
1799
} else if (I->getType ()->isIntegerTy (32 )) {
1800
1800
CReg = X86::ECX;
1801
1801
RC = &X86::GR32RegClass;
1802
1802
switch (I->getOpcode ()) {
1803
+ default : llvm_unreachable (" Unexpected shift opcode" );
1803
1804
case Instruction::LShr: OpReg = X86::SHR32rCL; break ;
1804
1805
case Instruction::AShr: OpReg = X86::SAR32rCL; break ;
1805
1806
case Instruction::Shl: OpReg = X86::SHL32rCL; break ;
1806
- default : return false ;
1807
1807
}
1808
1808
} else if (I->getType ()->isIntegerTy (64 )) {
1809
1809
CReg = X86::RCX;
1810
1810
RC = &X86::GR64RegClass;
1811
1811
switch (I->getOpcode ()) {
1812
+ default : llvm_unreachable (" Unexpected shift opcode" );
1812
1813
case Instruction::LShr: OpReg = X86::SHR64rCL; break ;
1813
1814
case Instruction::AShr: OpReg = X86::SAR64rCL; break ;
1814
1815
case Instruction::Shl: OpReg = X86::SHL64rCL; break ;
1815
- default : return false ;
1816
1816
}
1817
1817
} else {
1818
1818
return false ;
You can’t perform that action at this time.
0 commit comments