Remove unreachable code (MSVC warnings)

This commit is contained in:
MerryMage 2020-04-23 15:44:22 +01:00
parent a8a712c801
commit 5c0bb5cc63
24 changed files with 13 additions and 173 deletions

View file

@ -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) {