Add the instruction for the parameter variable declarations of builtin funcs.

Matches constructor setup, but I'm not really sure why we make the
variable twice.
This commit is contained in:
Eric Anholt
2010-03-28 00:36:06 -07:00
committed by Ian Romanick
parent 76a91e1afb
commit 3cb4358f38
+3 -1
View File
@@ -193,11 +193,13 @@ generate_function_instance(ir_function *f,
for (i = 0; i < n_args; i++) {
ir_variable *var = new ir_variable(type, arg_names[i]);
var = new ir_variable(type, arg_names[i]);
var->mode = ir_var_in;
sig->parameters.push_tail(var);
var = new ir_variable(type, arg_names[i]);
var->mode = ir_var_in;
instructions->push_tail(var);
declarations[i] = var;
}