[vala] Fix regression introduced by codegen refactoring
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Fix regression introduced by codegen refactoring
- Date: Thu, 19 Aug 2010 07:05:42 +0000 (UTC)
commit 5f56fe33f19683397150b6ac6efe6363aa5c4a82
Author: Jürg Billeter <j bitron ch>
Date: Thu Aug 19 08:58:42 2010 +0200
Fix regression introduced by codegen refactoring
vala/valaassignment.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaassignment.vala b/vala/valaassignment.vala
index 3f7e592..e136884 100644
--- a/vala/valaassignment.vala
+++ b/vala/valaassignment.vala
@@ -454,7 +454,13 @@ public class Vala.Assignment : Expression {
bool instance = (field != null && field.binding == MemberBinding.INSTANCE)
|| (property != null && property.binding == MemberBinding.INSTANCE);
- if (instance) {
+ if (field != null) {
+ // always process full lvalue
+ // current codegen depends on it
+ // should be removed when moving codegen from
+ // visit_assignment to emit_store_field
+ ma.emit (codegen);
+ } else if (instance) {
ma.inner.emit (codegen);
}
} else if (ea != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]