diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-05-07 19:44:51 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2011-05-07 20:29:30 +0200 |
commit | e3ffbdcbd2c126aa24ce1399a7c6b6549768dac0 (patch) | |
tree | 32b599fdc0dd45e78ad161656d0b5aa86292d038 /codegen/valaccodecontrolflowmodule.vala | |
parent | e3a70cef8f5d6b84d211036f4d6fe09420be87fa (diff) | |
download | vala-e3ffbdcbd2c126aa24ce1399a7c6b6549768dac0.tar.gz |
codegen: Use transform_value instead of transform_expression
Diffstat (limited to 'codegen/valaccodecontrolflowmodule.vala')
-rw-r--r-- | codegen/valaccodecontrolflowmodule.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codegen/valaccodecontrolflowmodule.vala b/codegen/valaccodecontrolflowmodule.vala index 59756d19d..b939bed1c 100644 --- a/codegen/valaccodecontrolflowmodule.vala +++ b/codegen/valaccodecontrolflowmodule.vala @@ -260,7 +260,7 @@ public abstract class Vala.CCodeControlFlowModule : CCodeMethodModule { var element_type = array_type.element_type.copy (); element_type.value_owned = false; - element_expr = transform_expression (element_expr, element_type, stmt.type_reference); + element_expr = get_cvalue_ (transform_value (new GLibValue (element_type, element_expr), stmt.type_reference, stmt)); visit_local_variable (stmt.element_variable); ccode.add_assignment (get_variable_cexpression (stmt.variable_name), element_expr); @@ -300,7 +300,7 @@ public abstract class Vala.CCodeControlFlowModule : CCodeMethodModule { var element_data_type = collection_type.get_type_arguments ().get (0).copy (); element_data_type.value_owned = false; element_expr = convert_from_generic_pointer (element_expr, element_data_type); - element_expr = transform_expression (element_expr, element_data_type, stmt.type_reference); + element_expr = get_cvalue_ (transform_value (new GLibValue (element_data_type, element_expr), stmt.type_reference, stmt)); visit_local_variable (stmt.element_variable); ccode.add_assignment (get_variable_cexpression (stmt.variable_name), element_expr); |