diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-04-11 19:45:49 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-04-11 19:45:49 +0000 |
commit | 9b7949d5ffff47d657935da2ea6ec5aa3e77f9a7 (patch) | |
tree | 893f402862757e0a812fbfbedce1b13d64213b40 /gcc/cp/optimize.c | |
parent | 2f5bf149f227198c523c682cb16052ac90ed54b4 (diff) | |
download | gcc-9b7949d5ffff47d657935da2ea6ec5aa3e77f9a7.tar.gz |
optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the cloned function to the clone.
* optimize.c (maybe_clone_body): Copy DECL_NUM_STMTS from the
cloned function to the clone.
From-SVN: r41267
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); |