]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
analyzer: Clean up collections for check_variables() after finished
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 5 Apr 2018 18:25:51 +0000 (20:25 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 7 Apr 2018 20:16:47 +0000 (22:16 +0200)
vala/valaflowanalyzer.vala

index 1fd580a46366458a754554a8d49a50af7a25d8fd..7f362783e485b01f7aa278b49b94011c17c00769 100644 (file)
@@ -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) {