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.
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index 11c810b..541398a 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -626,7 +626,7 @@
ir_variable *var = ir->variable_referenced();
if (var && var->constant_value)
- value = (ir_constant *)var->constant_value->clone(NULL);
+ value = var->constant_value->clone(NULL);
}