mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2025-12-31 19:54:27 +01:00
Remove unreachable code (MSVC warnings)
This commit is contained in:
parent
a8a712c801
commit
5c0bb5cc63
24 changed files with 13 additions and 173 deletions
|
|
@ -41,10 +41,8 @@ static size_t GetBitWidth(IR::Type type) {
|
|||
case IR::Type::Void:
|
||||
case IR::Type::Table:
|
||||
ASSERT_FALSE("Type {} cannot be represented at runtime", type);
|
||||
return 0;
|
||||
case IR::Type::Opaque:
|
||||
ASSERT_FALSE("Not a concrete type");
|
||||
return 0;
|
||||
case IR::Type::U1:
|
||||
return 8;
|
||||
case IR::Type::U8:
|
||||
|
|
@ -61,7 +59,6 @@ static size_t GetBitWidth(IR::Type type) {
|
|||
return 32; // TODO: Update to 16 when flags optimization is done
|
||||
}
|
||||
UNREACHABLE();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool IsValuelessType(IR::Type type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue