summaryrefslogtreecommitdiff
path: root/gcc/cfganal.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r--gcc/cfganal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index 6924fd39246..3ec6f6e7600 100644
--- a/gcc/cfganal.c
+++ b/gcc/cfganal.c
@@ -874,7 +874,9 @@ flow_depth_first_order_compute (dfs_order, rc_order)
SET_BIT (visited, dest->index);
if (dfs_order)
- dfs_order[dfsnum++] = dest->index;
+ dfs_order[dfsnum] = dest->index;
+
+ dfsnum++;
if (dest->succ)
{