summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-04-05 20:25:51 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-04-07 22:16:47 +0200
commit94a9765a364db053ee8d4487e1d9f27ce76f9737 (patch)
treed5b8e3c74d3b3b096c2c37fe941482666f21d424
parent44a2acfa2815b02611d3f562edec0a145ec66538 (diff)
downloadvala-94a9765a364db053ee8d4487e1d9f27ce76f9737.tar.gz
analyzer: Clean up collections for check_variables() after finished
-rw-r--r--vala/valaflowanalyzer.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/vala/valaflowanalyzer.vala b/vala/valaflowanalyzer.vala
index 1fd580a46..7f362783e 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) {