summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_function_inlining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/ir_function_inlining.cpp')
-rw-r--r--src/glsl/ir_function_inlining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_function_inlining.cpp b/src/glsl/ir_function_inlining.cpp
index b3d1f1d1674..6fe1264b0a4 100644
--- a/src/glsl/ir_function_inlining.cpp
+++ b/src/glsl/ir_function_inlining.cpp
@@ -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]);