mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 15:31:08 +01:00
Lowering of Branch / BranchIf / BranchWithArg / BlockArg. (#2904)
This gives us complete lowering of `if` expressions plus `and` and `or`. Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
c27f41c94b
commit
0d4d392d12
@@ -228,7 +228,8 @@ auto SemanticsHandleInfixOperator(SemanticsContext& context,
|
||||
context.AddNodeAndPush(
|
||||
parse_node,
|
||||
SemanticsNode::BlockArg::Make(
|
||||
parse_node, context.semantics_ir().GetNode(rhs_id).type_id()));
|
||||
parse_node, context.semantics_ir().GetNode(rhs_id).type_id(),
|
||||
resume_block_id));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user