Skip to content

Commit e3bedcd

Browse files
committed
Fix gcc_cfg_block_for_each_gimple_phi
This had a copy&paste typo that iterated over the regular gimple statements, rather than the phi nodes.
1 parent 1993656 commit e3bedcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc-c-api/gcc-cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ gcc_cfg_block_for_each_gimple_phi (gcc_cfg_block block,
198198
return false;
199199
}
200200

201-
for (gsi = gsi_start (info->seq);
201+
for (gsi = gsi_start (info->phi_nodes);
202202
!gsi_end_p (gsi); gsi_next (&gsi))
203203
{
204204

0 commit comments

Comments
 (0)