mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-06 13:07:59 +00:00
Fix #4156
This commit is contained in:
@@ -2630,7 +2630,7 @@ gb_internal ExactValue exact_bit_set_all_set_mask(Type *type) {
|
||||
}
|
||||
|
||||
} else {
|
||||
// TODO(bill): enum range based
|
||||
// TODO(bill): enum range based");
|
||||
big_int_from_i64(&mask, -1);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -1404,6 +1404,10 @@ gb_internal bool lb_switch_stmt_can_be_trivial_jump_table(AstSwitchStmt *ss, boo
|
||||
|
||||
}
|
||||
|
||||
if (is_typeid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user