authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-06-21 13:09:11-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-06-21 17:03:03-07:00
logb9b0e53197a977be6cecca29366bd1e758e66be8
tree6acb182820da4222b0927e81800e71b2b86a06a5
parent7a595f2e6c299afc8830c851b1797babc6087206

AstGen: remove unused parameter


1 files changed, 0 insertions(+), 14 deletions(-)

src/AstGen.zig-14
...@@ -4567,8 +4567,6 @@ fn tryExpr(...@@ -4567,8 +4567,6 @@ fn tryExpr(
4567 &else_scope,4567 &else_scope,
4568 condbr,4568 condbr,
4569 cond,4569 cond,
4570 node,
4571 node,
4572 then_result,4570 then_result,
4573 else_result,4571 else_result,
4574 block,4572 block,
...@@ -4662,8 +4660,6 @@ fn orelseCatchExpr(...@@ -4662,8 +4660,6 @@ fn orelseCatchExpr(
4662 &else_scope,4660 &else_scope,
4663 condbr,4661 condbr,
4664 cond,4662 cond,
4665 node,
4666 node,
4667 then_result,4663 then_result,
4668 else_result,4664 else_result,
4669 block,4665 block,
...@@ -4682,16 +4678,12 @@ fn finishThenElseBlock(...@@ -4682,16 +4678,12 @@ fn finishThenElseBlock(
4682 else_scope: *GenZir,4678 else_scope: *GenZir,
4683 condbr: Zir.Inst.Index,4679 condbr: Zir.Inst.Index,
4684 cond: Zir.Inst.Ref,4680 cond: Zir.Inst.Ref,
4685 then_src: ast.Node.Index,
4686 else_src: ast.Node.Index,
4687 then_result: Zir.Inst.Ref,4681 then_result: Zir.Inst.Ref,
4688 else_result: Zir.Inst.Ref,4682 else_result: Zir.Inst.Ref,
4689 main_block: Zir.Inst.Index,4683 main_block: Zir.Inst.Index,
4690 then_break_block: Zir.Inst.Index,4684 then_break_block: Zir.Inst.Index,
4691 break_tag: Zir.Inst.Tag,4685 break_tag: Zir.Inst.Tag,
4692) InnerError!Zir.Inst.Ref {4686) InnerError!Zir.Inst.Ref {
4693 _ = then_src;
4694 _ = else_src;
4695 // We now have enough information to decide whether the result instruction should4687 // We now have enough information to decide whether the result instruction should
4696 // be communicated via result location pointer or break instructions.4688 // be communicated via result location pointer or break instructions.
4697 const strat = rl.strategy(block_scope);4689 const strat = rl.strategy(block_scope);
...@@ -5021,8 +5013,6 @@ fn ifExpr(...@@ -5021,8 +5013,6 @@ fn ifExpr(
5021 &else_scope,5013 &else_scope,
5022 condbr,5014 condbr,
5023 cond.bool_bit,5015 cond.bool_bit,
5024 if_full.ast.then_expr,
5025 else_info.src,
5026 then_result,5016 then_result,
5027 else_info.result,5017 else_info.result,
5028 block,5018 block,
...@@ -5303,8 +5293,6 @@ fn whileExpr(...@@ -5303,8 +5293,6 @@ fn whileExpr(
5303 &else_scope,5293 &else_scope,
5304 condbr,5294 condbr,
5305 cond.bool_bit,5295 cond.bool_bit,
5306 while_full.ast.then_expr,
5307 else_info.src,
5308 then_result,5296 then_result,
5309 else_info.result,5297 else_info.result,
5310 loop_block,5298 loop_block,
...@@ -5479,8 +5467,6 @@ fn forExpr(...@@ -5479,8 +5467,6 @@ fn forExpr(
5479 &else_scope,5467 &else_scope,
5480 condbr,5468 condbr,
5481 cond,5469 cond,
5482 for_full.ast.then_expr,
5483 else_info.src,
5484 then_result,5470 then_result,
5485 else_info.result,5471 else_info.result,
5486 loop_block,5472 loop_block,