| ... | ... | @@ -2781,29 +2781,6 @@ fn assignShift( |
| 2781 | 2781 | _ = try gz.addBin(.store, lhs_ptr, result); |
| 2782 | 2782 | } |
| 2783 | 2783 | |
| 2784 | | fn assignShiftSat( |
| 2785 | | gz: *GenZir, |
| 2786 | | scope: *Scope, |
| 2787 | | infix_node: Ast.Node.Index, |
| 2788 | | op_inst_tag: Zir.Inst.Tag, |
| 2789 | | ) InnerError!void { |
| 2790 | | try emitDbgNode(gz, infix_node); |
| 2791 | | const astgen = gz.astgen; |
| 2792 | | const tree = astgen.tree; |
| 2793 | | const node_datas = tree.nodes.items(.data); |
| 2794 | | |
| 2795 | | const lhs_ptr = try lvalExpr(gz, scope, node_datas[infix_node].lhs); |
| 2796 | | const lhs = try gz.addUnNode(.load, lhs_ptr, infix_node); |
| 2797 | | const rhs_type = try gz.addUnNode(.typeof, lhs, infix_node); |
| 2798 | | const rhs = try expr(gz, scope, .{ .ty = rhs_type }, node_datas[infix_node].rhs); |
| 2799 | | |
| 2800 | | const result = try gz.addPlNode(op_inst_tag, infix_node, Zir.Inst.Bin{ |
| 2801 | | .lhs = lhs, |
| 2802 | | .rhs = rhs, |
| 2803 | | }); |
| 2804 | | _ = try gz.addBin(.store, lhs_ptr, result); |
| 2805 | | } |
| 2806 | | |
| 2807 | 2784 | fn boolNot(gz: *GenZir, scope: *Scope, rl: ResultLoc, node: Ast.Node.Index) InnerError!Zir.Inst.Ref { |
| 2808 | 2785 | const astgen = gz.astgen; |
| 2809 | 2786 | const tree = astgen.tree; |