summaryrefslogtreecommitdiff
path: root/src/analysis/disass
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-12 18:15:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-12 18:15:24 (GMT)
commitbdda063b67d8c1d402f6dc17726fed0c800d3d1c (patch)
treea1e8458bb03b6617b3190fe880773b6605185bde /src/analysis/disass
parenta331ff258895865049bf79bc1629dbc744b7faf5 (diff)
Fixed the computation of dominators for the loops detection.
Diffstat (limited to 'src/analysis/disass')
-rw-r--r--src/analysis/disass/dragon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/analysis/disass/dragon.c b/src/analysis/disass/dragon.c
index 9064af8..655300b 100644
--- a/src/analysis/disass/dragon.c
+++ b/src/analysis/disass/dragon.c
@@ -591,6 +591,8 @@ void compute_all_dominators(dragon_node *nodes, size_t count)
set_in_bit_field(inter, k, 1);
+ or_bit_field(inter, node->bits);
+
if (compare_bit_fields(node->bits, inter) != 0)
{
copy_bit_field(node->bits, inter);