general: Replace unreachable-imitating assertions with UNREACHABLE()

We can just use the self-documenting assertion for indicating
unreachable paths, instead of manually passing false and providing a
message.
This commit is contained in:
Lioncash 2019-04-12 14:51:42 -04:00 committed by MerryMage
parent 4a3d808354
commit fe95575b95
6 changed files with 17 additions and 17 deletions

View file

@ -368,7 +368,7 @@ IR::U32U64 TranslatorVisitor::ShiftReg(size_t bitsize, Reg reg, Imm<2> shift, IR
case 0b11:
return ir.RotateRight(result, amount);
}
ASSERT_MSG(false, "Unreachable");
UNREACHABLE();
return {};
}
@ -432,7 +432,7 @@ IR::U32U64 TranslatorVisitor::ExtendReg(size_t bitsize, Reg reg, Imm<3> option,
break;
}
default:
ASSERT_MSG(false, "Unreachable");
UNREACHABLE();
}
if (len < bitsize) {