mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 04:04:30 +01:00
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:
parent
4a3d808354
commit
fe95575b95
6 changed files with 17 additions and 17 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue