Skip to content

Commit

Permalink
autofree: use g.file.path
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed May 12, 2024
1 parent 86994f5 commit 35f6523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -2996,7 +2996,7 @@ fn (mut g Gen) print_autofree_var(var ast.Var, comment string) {
if !g.pref.print_autofree_vars && g.pref.print_autofree_vars_in_fn == '' {
return
}
println('autofree: file.v:${var.pos.line_nr}: skipping `${var.name}` in fn `${g.last_fn_c_name}`. ${comment}')
println('autofree: ${g.file.path}:${var.pos.line_nr}: skipping `${var.name}` in fn `${g.last_fn_c_name}`. ${comment}')
}

fn (mut g Gen) autofree_scope_vars2(scope &ast.Scope, start_pos int, end_pos int, line_nr int, free_parent_scopes bool, stop_pos int) {
Expand Down

0 comments on commit 35f6523

Please sign in to comment.