authorgravatar for pentuppup@noreply.codeberg.orgpentuppup <pentuppup@noreply.codeberg.org> 2026-07-17 18:54:49-04:00
committergravatar for pentuppup@noreply.codeberg.orgpentuppup <pentuppup@noreply.codeberg.org> 2026-07-17 19:07:09-04:00
log134a2c666aed48c40f8dd4525e53fe890af7e07a
treed7d63374386f40a2127b9716a0ebbb08674cd8d9
parent69a26976ed2b624d99d364b642f78ca6bb59e5b6

AstGen: advance cursor in bitCast


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

lib/std/zig/AstGen.zig+3
...@@ -8724,8 +8724,11 @@ fn bitCast(...@@ -8724,8 +8724,11 @@ fn bitCast(
8724 node: Ast.Node.Index,8724 node: Ast.Node.Index,
8725 operand_node: Ast.Node.Index,8725 operand_node: Ast.Node.Index,
8726) InnerError!Zir.Inst.Ref {8726) InnerError!Zir.Inst.Ref {
8727 const cursor = maybeAdvanceSourceCursorToMainToken(gz, node);
8727 const dest_type = try ri.rl.resultTypeForCast(gz, node, "@bitCast");8728 const dest_type = try ri.rl.resultTypeForCast(gz, node, "@bitCast");
8728 const operand = try reachableExpr(gz, scope, .{ .rl = .none }, operand_node, node);8729 const operand = try reachableExpr(gz, scope, .{ .rl = .none }, operand_node, node);
8730
8731 try emitDbgStmt(gz, cursor);
8729 const result = try gz.addPlNode(.bitcast, node, Zir.Inst.Bin{8732 const result = try gz.addPlNode(.bitcast, node, Zir.Inst.Bin{
8730 .lhs = dest_type,8733 .lhs = dest_type,
8731 .rhs = operand,8734 .rhs = operand,