summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ir.h b/ir.h
index c93c043f5e..892455e1de 100644
--- a/ir.h
+++ b/ir.h
@@ -471,7 +471,11 @@ public:
ir_expression(int op, const struct glsl_type *type,
ir_rvalue *, ir_rvalue *);
- unsigned int get_num_operands(void);
+ static unsigned int get_num_operands(ir_expression_operation);
+ unsigned int get_num_operands()
+ {
+ return get_num_operands(operation);
+ }
virtual void accept(ir_visitor *v)
{