Switch to using Core.BigInt as the type of the size of a type literal. (#4450)

This removes one of the few ways in which `i32` is special and gets us
closer to removing it as a special case.
This commit is contained in:
Richard Smith
2024-10-28 23:35:08 +00:00
committed by GitHub
parent 7ec8ceac73
commit df68bf9f71
29 changed files with 485 additions and 448 deletions
+3 -1
View File
@@ -79,7 +79,9 @@ using Bool = BuiltinType<InstId::BuiltinBoolType>;
struct AnyInt {
static auto Check(const File& sem_ir, ValidateState& state, TypeId type_id)
-> bool {
// TODO: Support Core.BigInt once it exists.
if (BuiltinType<InstId::BuiltinBigIntType>::Check(sem_ir, state, type_id)) {
return true;
}
if (BuiltinType<InstId::BuiltinIntType>::Check(sem_ir, state, type_id)) {
return true;
}