[vala/wip/effectfree: 24/33] codegen: Use create_temp_value in struct initializer



commit 867ab7c9ec6048317b48505a600f51d6b97a0a22
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Jun 11 11:01:09 2011 +0200

    codegen: Use create_temp_value in struct initializer

 codegen/valaccodebasemodule.vala |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index fe57aa0..955ab8c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2211,10 +2211,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
 				set_cvalue (list, clist);
 			} else {
 				// used as expression
-				var temp_decl = get_temp_variable (list.target_type, false, list);
-				emit_temp_var (temp_decl);
-
-				var instance = get_local_cvalue (temp_decl);
+				var instance = create_temp_value (list.target_type, true, list);
 
 				var field_it = st.get_fields ().iterator ();
 				foreach (Expression expr in list.get_initializers ()) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]