Browse Source

Allow precompiled functions using the constructors as well

Yentl Van Tendeloo 9 years ago
parent
commit
fce0ff4801
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bootstrap/constructors.alc

+ 1 - 0
bootstrap/constructors.alc

@@ -84,6 +84,7 @@ Action function construct_top_funcdef():
 	while (counter < nrParams):
 		param = create_node()
 		dict_add(params, string_get(arg_names_decl, counter), param)
+		dict_add(param, "name", string_get(arg_names_decl, counter))
 		output(param)
 		// Output each parameter in turn
 		counter = counter + 1