diff options
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 5232491ef8e..8f6fd0e6fcf 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -1114,6 +1114,10 @@ maybe_clone_body (fn) /* Actually copy the body. */ TREE_CHAIN (DECL_SAVED_TREE (clone)) = copy_body (&id); + /* There are as many statements in the clone as in the + original. */ + DECL_NUM_STMTS (clone) = DECL_NUM_STMTS (fn); + /* Clean up. */ splay_tree_delete (id.decl_map); VARRAY_FREE (id.fns); |