Commit bccc3acd authored by Rico Tzschichholz's avatar Rico Tzschichholz

codegen: Don't emit unused temp variable for element access assignments

Regression of 2bcda488
parent 10580666
......@@ -62,7 +62,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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment