diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-28 00:36:06 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-29 12:48:45 -0700 |
commit | 3cb4358f386d20c23de87b23a830f6c4ed0f08ad (patch) | |
tree | ae5aaf69b30de5437ec6ab64ac76548ab3944fb8 /builtin_function.cpp | |
parent | 76a91e1afbd24dbbdaab1b9dde8540906376cb18 (diff) |
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.
Diffstat (limited to 'builtin_function.cpp')
-rw-r--r-- | builtin_function.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin_function.cpp b/builtin_function.cpp index edb33dd8f3..58e3abfceb 100644 --- a/builtin_function.cpp +++ b/builtin_function.cpp @@ -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; } |