]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix regression introduced by codegen refactoring
authorJürg Billeter <j@bitron.ch>
Thu, 19 Aug 2010 06:58:42 +0000 (08:58 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 19 Aug 2010 06:58:42 +0000 (08:58 +0200)
vala/valaassignment.vala

index 3f7e592413a1cb11739ddbad9f7e2f4fdf80ffca..e136884283c6b715d21091881b0479273498f8f8 100644 (file)
@@ -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) {