[vala/0.42] codegen: Don't emit unused temp variable for element access assignments
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] codegen: Don't emit unused temp variable for element access assignments
- Date: Mon, 26 Nov 2018 09:15:19 +0000 (UTC)
commit 364d33d8f90f9f500455dadbf5bf36da943290c1
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 c8f24383e..1b68b3764 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]