glsl_type::generate_constructor_prototype now generates the function too
Also, change the name of the method to generate_constructor.
diff --git a/ast_function.cpp b/ast_function.cpp
index 3472b39..cc8e9a8 100644
--- a/ast_function.cpp
+++ b/ast_function.cpp
@@ -271,11 +271,10 @@
ir_function *f = state->symbols->get_function(constructor_type->name);
/* If the constructor for this type of array does not exist, generate the
- * prototype and add it to the symbol table. The code will be generated
- * later.
+ * prototype and add it to the symbol table.
*/
if (f == NULL) {
- f = constructor_type->generate_constructor_prototype(state->symbols);
+ f = constructor_type->generate_constructor(state->symbols);
}
ir_rvalue *const r =