cgen: fix const name

pull/4113/head
Alexander Medvednikov 2020-03-24 22:41:01 +01:00
parent cc9537dd8a
commit 7f345e310b
1 changed files with 2 additions and 2 deletions

View File

@ -655,9 +655,9 @@ fn (g mut Gen) gen_fn_decl(it ast.FnDecl) {
if is_main {
g.writeln('_vinit();')
if g.autofree {
g.writeln('free(os__args.data); // empty, inited in _vinit()')
g.writeln('free(_const_os__args.data); // empty, inited in _vinit()')
}
g.writeln('os__args = os__init_os_args(argc, (byteptr*)argv);')
g.writeln('_const_os__args = os__init_os_args(argc, (byteptr*)argv);')
}
g.stmts(it.stmts)
// ////////////