mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-10 02:46:28 +00: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:
@@ -128,7 +128,7 @@ void EmitX64::EmitGetNZCVFromOp(EmitContext& ctx, IR::Inst* inst) {
|
||||
case IR::Type::U64:
|
||||
return 64;
|
||||
default:
|
||||
ASSERT_MSG(false, "Unreachable");
|
||||
UNREACHABLE();
|
||||
return 0;
|
||||
}
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user