[vala/0.36] codegen: Don't emit unused temp variable for element access assignments



commit ee8beae699a718052dbcef61624d8732251fad6e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Nov 22 09:21:27 2018 +0100

    codegen: Don't emit unused temp variable for element access assignments
    
    Regression of 2bcda488725cf28b3c3c358f2c348632bb7ba232

 codegen/valaccodeassignmentmodule.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodeassignmentmodule.vala b/codegen/valaccodeassignmentmodule.vala
index cad528a8f..ec52a8ebe 100644
--- a/codegen/valaccodeassignmentmodule.vala
+++ b/codegen/valaccodeassignmentmodule.vala
@@ -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;
                }
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]