mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 16:01:04 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user