1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: remove a "return var" comment

This commit is contained in:
Alexander Medvednikov 2021-04-03 14:18:00 +03:00
parent 094441c863
commit 31f8d5542c

View File

@ -4792,7 +4792,8 @@ fn (mut g Gen) return_statement(node ast.Return) {
// Don't use a tmp var if a variable is simply returned: `return x`
if node.exprs[0] !is ast.Ident {
tmp = g.new_tmp_var()
g.write('/*tmp return var*/ ')
// g.write('/*tmp return var*/ ')
g.write(' ')
g.write(g.typ(g.fn_decl.return_type))
g.write(' ')
g.write(tmp)