Skip to content

Commit

Permalink
cgen: cleanup // scopeobjects.len == lines, when -autofree is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed May 24, 2024
1 parent 1cd561f commit 75fe4ea
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 @@ -3000,10 +3000,10 @@ fn (mut g Gen) print_autofree_var(var ast.Var, comment string) {
}

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) {
g.writeln('// scopeobjects.len == ${scope.objects.len}')
if scope == unsafe { nil } {
return
}
g.trace_autofree('// scopeobjects.len == ${scope.objects.len}')
for _, obj in scope.objects {
match obj {
ast.Var {
Expand Down

0 comments on commit 75fe4ea

Please sign in to comment.