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

View File

@@ -626,7 +626,7 @@ ir_constant_visitor::visit(ir_dereference_variable *ir)
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);
}