[vala/wip/effectfree: 28/44] codegen: Use create_temp_value in struct initializer
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/effectfree: 28/44] codegen: Use create_temp_value in struct initializer
- Date: Wed, 6 Jul 2011 21:13:24 +0000 (UTC)
commit edb349cd9453a1d998ebc3d3fbd634c9fbee90f9
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 ca3b915..13da64b 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]