[vala/staging: 1/2] analyzer: Clean up collections for check_variables() after finished
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/2] analyzer: Clean up collections for check_variables() after finished
- Date: Sat, 7 Apr 2018 20:18:41 +0000 (UTC)
commit 94a9765a364db053ee8d4487e1d9f27ce76f9737
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Apr 5 20:25:51 2018 +0200
analyzer: Clean up collections for check_variables() after finished
vala/valaflowanalyzer.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaflowanalyzer.vala b/vala/valaflowanalyzer.vala
index 1fd580a..7f36278 100644
--- a/vala/valaflowanalyzer.vala
+++ b/vala/valaflowanalyzer.vala
@@ -90,6 +90,7 @@ public class Vala.FlowAnalyzer : CodeVisitor {
private bool unreachable_reported;
private List<JumpTarget> jump_stack = new ArrayList<JumpTarget> ();
+ // check_variables
Map<Symbol, List<Variable>> var_map;
Set<Variable> used_vars;
Map<Variable, PhiFunction> phi_functions;
@@ -431,6 +432,10 @@ public class Vala.FlowAnalyzer : CodeVisitor {
}
}
}
+
+ phi_functions = null;
+ used_vars = null;
+ var_map = null;
}
void check_block_variables (BasicBlock block) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]