From 134a2c666aed48c40f8dd4525e53fe890af7e07a Mon Sep 17 00:00:00 2001 From: pentuppup Date: Fri, 17 Jul 2026 18:54:49 -0400 Subject: [PATCH] AstGen: advance cursor in bitCast --- lib/std/zig/AstGen.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/std/zig/AstGen.zig b/lib/std/zig/AstGen.zig index a3ced5fcecae6af2024fcccc419ef2015ac4911e..c865bd92fe1d3d69cf188cf295ba637ef70a0b9f 100644 --- a/lib/std/zig/AstGen.zig +++ b/lib/std/zig/AstGen.zig @@ -8724,8 +8724,11 @@ fn bitCast( node: Ast.Node.Index, operand_node: Ast.Node.Index, ) InnerError!Zir.Inst.Ref { + const cursor = maybeAdvanceSourceCursorToMainToken(gz, node); const dest_type = try ri.rl.resultTypeForCast(gz, node, "@bitCast"); const operand = try reachableExpr(gz, scope, .{ .rl = .none }, operand_node, node); + + try emitDbgStmt(gz, cursor); const result = try gz.addPlNode(.bitcast, node, Zir.Inst.Bin{ .lhs = dest_type, .rhs = operand, -- 2.54.0