glsl2: Clone methods return the type of the thing being cloned

This is as opposed to returning the type of the base class of the hierarchy.
This commit is contained in:
Ian Romanick
2010-07-06 17:41:02 -07:00
parent f14e596f11
commit ca088cc277
5 changed files with 45 additions and 41 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
ir_rvalue *param = (ir_rvalue *) param_iter.get();
/* Generate a new variable for the parameter. */
parameters[i] = (ir_variable *)sig_param->clone(ht);
parameters[i] = sig_param->clone(ht);
parameters[i]->mode = ir_var_auto;
next_ir->insert_before(parameters[i]);