Finish removing BuiltinInstKind (#4637)

This commit is contained in:
Jon Ross-Perkins
2024-12-05 22:07:51 +00:00
committed by GitHub
parent e4eeacabe7
commit 1cba3328f7
34 changed files with 84 additions and 196 deletions
+1 -2
View File
@@ -6,7 +6,6 @@
#include "toolchain/check/convert.h"
#include "toolchain/check/handle.h"
#include "toolchain/parse/node_kind.h"
#include "toolchain/sem_ir/builtin_inst_kind.h"
namespace Carbon::Check {
@@ -52,7 +51,7 @@ auto HandleParseNode(Context& context, Parse::ArrayExprId node_id) -> bool {
bound_inst_id = ConvertToValueOfType(
context, context.insts().GetLocId(bound_inst_id), bound_inst_id,
context.GetBuiltinType(SemIR::BuiltinInstKind::IntLiteralType));
context.GetSingletonType(SemIR::IntLiteralType::SingletonInstId));
context.AddInstAndPush<SemIR::ArrayType>(
node_id, {.type_id = SemIR::TypeType::SingletonTypeId,
.bound_id = bound_inst_id,