mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 06:52:38 +00: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:
1 parent
7ec8ceac73
commit
df68bf9f71
29 files changed
+485
-448
No files matched your search
@@ -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