[vala/wip/effectfree: 28/43] 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/43] codegen: Use create_temp_value in struct initializer
- Date: Tue, 5 Jul 2011 21:54:56 +0000 (UTC)
commit 6cb7e23cab7a79aae00007a057d5e95c776ac01f
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 04ba711..a3c2fba 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]