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

ci: fix -autofree compilation of vlib/v/tests/valgrind/strings_and_arrays.vv

This commit is contained in:
Delyan Angelov 2020-08-04 11:30:02 +03:00
parent 9511d086bd
commit f7a0d0a02f

View File

@ -197,7 +197,7 @@ fn (mut g Gen) string_inter_literal(node ast.StringInterLiteral) {
free := g.pref.autofree && g.inside_call && !g.inside_return && g.inside_ternary == 0 && !g.inside_const
// && g.cur_fn != 0 &&
// g.cur_fn.name != ''
if false && free {
if free {
// Save the string expr in a temporary variable, so that it can be removed after the call.
tmp = g.new_tmp_var()
/*