diff options
Diffstat (limited to 'gcc/tree-cfg.c')
| -rw-r--r-- | gcc/tree-cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 9862af8..d4aa935 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -1574,7 +1574,8 @@ remove_useless_stmts_cond (gimple_stmt_iterator *gsi, struct rus_data *data) gimple stmt = gsi_stmt (*gsi); /* The folded result must still be a conditional statement. */ - fold_stmt_inplace (stmt); + fold_stmt (gsi); + gcc_assert (gsi_stmt (*gsi) == stmt); data->may_branch = true; |
