summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analysis/disass/loop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/analysis/disass/loop.c b/src/analysis/disass/loop.c
index 4a499fd..c37c7f6 100644
--- a/src/analysis/disass/loop.c
+++ b/src/analysis/disass/loop.c
@@ -408,9 +408,8 @@ static void define_basic_blocks_loops(GBlockList *list, bblock_info_t *info)
{
links = get_block_predecessors(block, info, &count);
-
for (k = 0; k < count; k++)
- if (links[k].info->iloop_header == iter->iloop_header)
+ if (should_be_natural_loop_link(iter->iloop_header, links[k].info->iloop_header))
{
g_basic_block_get_boundaries(G_BASIC_BLOCK(links[k].linked), NULL, &last);
g_basic_block_get_boundaries(G_BASIC_BLOCK(block), &first, NULL);