[vala/staging] codegen: Use temp_ref_values list instead of patching the AST
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Use temp_ref_values list instead of patching the AST
- Date: Thu, 4 Feb 2021 07:24:07 +0000 (UTC)
commit 46836852524f1ec269a942af0407ac32e9c3a4df
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Feb 3 23:16:41 2021 +0100
codegen: Use temp_ref_values list instead of patching the AST
Simplyfies 5328619a8141aa11341d479428ebfdcec0ff9756
codegen/valagvaluemodule.vala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/codegen/valagvaluemodule.vala b/codegen/valagvaluemodule.vala
index f13022c26..8b4dbbc66 100644
--- a/codegen/valagvaluemodule.vala
+++ b/codegen/valagvaluemodule.vala
@@ -51,8 +51,7 @@ public class Vala.GValueModule : GAsyncModule {
ccode.add_assignment (temp_ref, get_cvalue (expr.inner));
// value needs to be kept alive until the end of this block
- assert (current_symbol is Block);
- ((Block) current_symbol).add_local_variable (temp_var);
+ temp_ref_values.insert (0, get_local_cvalue (temp_var));
}
CCodeExpression rv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]