mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-20 14:08:39 +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:
@@ -173,7 +173,7 @@ IR::ResultAndCarry<IR::U32> ArmTranslatorVisitor::EmitImmShift(IR::U32 value, Sh
|
||||
else
|
||||
return ir.RotateRightExtended(value, carry_in);
|
||||
}
|
||||
ASSERT_MSG(false, "Unreachable");
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ IR::ResultAndCarry<IR::U32> ArmTranslatorVisitor::EmitRegShift(IR::U32 value, Sh
|
||||
case ShiftType::ROR:
|
||||
return ir.RotateRight(value, amount, carry_in);
|
||||
}
|
||||
ASSERT_MSG(false, "Unreachable");
|
||||
UNREACHABLE();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user