mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 19:01:05 +01:00
@@ -37,9 +37,8 @@ auto HandleParseNode(Context& context, Parse::IfExprIfId node_id) -> bool {
|
||||
static auto DecayIntLiteralToSizedInt(Context& context, Parse::NodeId node_id,
|
||||
SemIR::InstId operand_id)
|
||||
-> SemIR::InstId {
|
||||
if (context.types().GetTypeInstId(
|
||||
context.insts().Get(operand_id).type_id()) ==
|
||||
SemIR::IntLiteralType::TypeInstId) {
|
||||
if (context.types().Is<SemIR::IntLiteralType>(
|
||||
context.insts().Get(operand_id).type_id())) {
|
||||
operand_id = ConvertToValueOfType(
|
||||
context, node_id, operand_id,
|
||||
MakeIntType(context, node_id, SemIR::IntKind::Signed,
|
||||
|
||||
Reference in New Issue
Block a user