]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Don't emit unused temp variable for element access assignments
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 22 Nov 2018 08:21:27 +0000 (09:21 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 26 Nov 2018 08:59:49 +0000 (09:59 +0100)
Regression of 2bcda488725cf28b3c3c358f2c348632bb7ba232

codegen/valaccodeassignmentmodule.vala

index c8f24383ee9673caf41c23cb40da89ad7f1cdbde..1b68b37640ff7469312577e62ff6a6f31f6cfa99 100644 (file)
@@ -71,7 +71,7 @@ public class Vala.CCodeAssignmentModule : CCodeMemberAccessModule {
                if (assignment.left.value_type is ArrayType && (((ArrayType) assignment.left.value_type).inline_allocated)) {
                        return load_variable (variable, assignment.left.target_value);
                } else {
-                       return store_temp_value (assignment.left.target_value, assignment);
+                       return assignment.right.target_value;
                }
        }