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,