mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2033,8 +2033,7 @@ static SDValue LowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) {
|
||||
int elt_byte = EltNo * VT.getSizeInBits() / 8;
|
||||
|
||||
switch (VT.getSimpleVT().SimpleTy) {
|
||||
default:
|
||||
assert(false && "Invalid value type!");
|
||||
default: llvm_unreachable("Invalid value type!");
|
||||
case MVT::i8: {
|
||||
prefslot_begin = prefslot_end = 3;
|
||||
break;
|
||||
@@ -2362,8 +2361,7 @@ static SDValue LowerCTPOP(SDValue Op, SelectionDAG &DAG) {
|
||||
DebugLoc dl = Op.getDebugLoc();
|
||||
|
||||
switch (VT.getSimpleVT().SimpleTy) {
|
||||
default:
|
||||
assert(false && "Invalid value type!");
|
||||
default: llvm_unreachable("Invalid value type!");
|
||||
case MVT::i8: {
|
||||
SDValue N = Op.getOperand(0);
|
||||
SDValue Elt0 = DAG.getConstant(0, MVT::i32);
|
||||
|
Reference in New Issue
Block a user