this can be a move
authorWolfgang Bumiller <wry.git@bumiller.com>
Mon, 19 Jan 2015 12:46:30 +0000 (13:46 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Mon, 19 Jan 2015 12:46:30 +0000 (13:46 +0100)
parser.cpp

index ba08ec8..b5c63a3 100644 (file)
@@ -4631,7 +4631,7 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var)
         fval->expression.flags |= AST_FLAG_VARIADIC;
     var = fval;
 
-    var->expression.type_params = params;
+    var->expression.type_params = move(params);
     var->expression.varparam = (ast_expression*)varparam;
     var->argcounter = argcounter;