diff options
author | David Hewitt <davidmhewitt@gmail.com> | 2018-04-05 18:09:54 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-04-07 22:16:47 +0200 |
commit | e4119fc93c01608e975eecf0587ede3c0d9c596d (patch) | |
tree | 3a71660c7ee256a905eb669335d338eb681efa2a /vala/valabasicblock.vala | |
parent | 94a9765a364db053ee8d4487e1d9f27ce76f9737 (diff) | |
download | vala-e4119fc93c01608e975eecf0587ede3c0d9c596d.tar.gz |
analyzer: Break cyclic references of BasicBlock
https://bugzilla.gnome.org/show_bug.cgi?id=794979
Diffstat (limited to 'vala/valabasicblock.vala')
-rw-r--r-- | vala/valabasicblock.vala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vala/valabasicblock.vala b/vala/valabasicblock.vala index f1c3ea810..759bb9ce0 100644 --- a/vala/valabasicblock.vala +++ b/vala/valabasicblock.vala @@ -31,12 +31,12 @@ public class Vala.BasicBlock { // control flow graph private List<weak BasicBlock> predecessors = new ArrayList<weak BasicBlock> (); - private List<BasicBlock> successors = new ArrayList<BasicBlock> (); + private List<weak BasicBlock> successors = new ArrayList<weak BasicBlock> (); // dominator tree - public BasicBlock parent { get; private set; } - List<BasicBlock> children = new ArrayList<BasicBlock> (); - Set<BasicBlock> df = new HashSet<BasicBlock> (); + public weak BasicBlock parent { get; private set; } + List<weak BasicBlock> children = new ArrayList<weak BasicBlock> (); + Set<weak BasicBlock> df = new HashSet<weak BasicBlock> (); Set<PhiFunction> phi_functions = new HashSet<PhiFunction> (); @@ -73,7 +73,7 @@ public class Vala.BasicBlock { return predecessors; } - public List<BasicBlock> get_successors () { + public List<weak BasicBlock> get_successors () { return successors; } @@ -82,7 +82,7 @@ public class Vala.BasicBlock { block.parent = this; } - public List<BasicBlock> get_children () { + public List<weak BasicBlock> get_children () { return children; } @@ -90,7 +90,7 @@ public class Vala.BasicBlock { df.add (block); } - public Set<BasicBlock> get_dominator_frontier () { + public Set<weak BasicBlock> get_dominator_frontier () { return df; } |