[vala] codegen: Set result of object creation to be an lvalue
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Set result of object creation to be an lvalue
- Date: Fri, 26 Aug 2011 08:38:42 +0000 (UTC)
commit e93175636eed4b823f1d48bb5994c0ad7a31d68b
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Aug 26 09:37:15 2011 +0200
codegen: Set result of object creation to be an lvalue
codegen/valaccodebasemodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 0017ea2..70a5e68 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -4368,6 +4368,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
ccode.add_assignment (get_cvalue_ (temp_value), creation_expr);
expr.target_value = temp_value;
}
+
+ ((GLibValue) expr.target_value).lvalue = true;
}
public CCodeExpression? handle_struct_argument (Parameter? param, Expression arg, CCodeExpression? cexpr) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]