[vala/wip/emitlocal: 2/17] codegen: Use create_temp_value in struct initializer
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/emitlocal: 2/17] codegen: Use create_temp_value in struct initializer
- Date: Tue, 14 Jun 2011 14:37:29 +0000 (UTC)
commit 89159ce35d7fe6e39d1ef9e0bf06704278bf1e7a
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 59ecf5e..422b33a 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2203,10 +2203,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]