projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a91e1
)
Add the instruction for the parameter variable declarations of builtin funcs.
author
Eric Anholt
<eric@anholt.net>
Sun, 28 Mar 2010 07:36:06 +0000
(
00:36
-0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 29 Mar 2010 19:48:45 +0000
(12:48 -0700)
Matches constructor setup, but I'm not really sure why we make the
variable twice.
builtin_function.cpp
patch
|
blob
|
history
diff --git
a/builtin_function.cpp
b/builtin_function.cpp
index edb33dd8f350ef6f0377f0a2c88c9de23817dc6d..58e3abfceb77f98f9a583e34ad5ea3fe9154e87a 100644
(file)
--- 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;
}