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(
87248724 node: Ast.Node.Index,
87258725 operand_node: Ast.Node.Index,
87268726) InnerError!Zir.Inst.Ref {
8727 const cursor = maybeAdvanceSourceCursorToMainToken(gz, node);
87278728 const dest_type = try ri.rl.resultTypeForCast(gz, node, "@bitCast");
87288729 const operand = try reachableExpr(gz, scope, .{ .rl = .none }, operand_node, node);
8730
8731 try emitDbgStmt(gz, cursor);
87298732 const result = try gz.addPlNode(.bitcast, node, Zir.Inst.Bin{
87308733 .lhs = dest_type,
87318734 .rhs = operand,