diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-06-21 13:09:11 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-06-21 17:03:03 -0700 |
| commit | b9b0e53197a977be6cecca29366bd1e758e66be8 (patch) | |
| tree | 6acb182820da4222b0927e81800e71b2b86a06a5 /src/AstGen.zig | |
| parent | 7a595f2e6c299afc8830c851b1797babc6087206 (diff) | |
| download | zig-b9b0e53197a977be6cecca29366bd1e758e66be8.tar.gz zig-b9b0e53197a977be6cecca29366bd1e758e66be8.zip | |
AstGen: remove unused parameter
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 99962974a6..a222c52465 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -4567,8 +4567,6 @@ fn tryExpr( &else_scope, condbr, cond, - node, - node, then_result, else_result, block, @@ -4662,8 +4660,6 @@ fn orelseCatchExpr( &else_scope, condbr, cond, - node, - node, then_result, else_result, block, @@ -4682,16 +4678,12 @@ fn finishThenElseBlock( else_scope: *GenZir, condbr: Zir.Inst.Index, cond: Zir.Inst.Ref, - then_src: ast.Node.Index, - else_src: ast.Node.Index, then_result: Zir.Inst.Ref, else_result: Zir.Inst.Ref, main_block: Zir.Inst.Index, then_break_block: Zir.Inst.Index, break_tag: Zir.Inst.Tag, ) InnerError!Zir.Inst.Ref { - _ = then_src; - _ = else_src; // We now have enough information to decide whether the result instruction should // be communicated via result location pointer or break instructions. const strat = rl.strategy(block_scope); @@ -5021,8 +5013,6 @@ fn ifExpr( &else_scope, condbr, cond.bool_bit, - if_full.ast.then_expr, - else_info.src, then_result, else_info.result, block, @@ -5303,8 +5293,6 @@ fn whileExpr( &else_scope, condbr, cond.bool_bit, - while_full.ast.then_expr, - else_info.src, then_result, else_info.result, loop_block, @@ -5479,8 +5467,6 @@ fn forExpr( &else_scope, condbr, cond, - for_full.ast.then_expr, - else_info.src, then_result, else_info.result, loop_block, |
