diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-04 15:08:54 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-04 15:08:54 +0000 |
commit | 9193bd65cc0783a5fc8a85ee46117c0877b5c3df (patch) | |
tree | 0627a6dc8c3167bfc8f5ebb5919309f95016fef8 /gcc/cp/optimize.c | |
parent | 074aee7a11834d66813fcb6736e4a99e0de37159 (diff) | |
download | gcc-9193bd65cc0783a5fc8a85ee46117c0877b5c3df.tar.gz |
* optimize.c (expand_call_inline): Only add newly inlined statements
into inlined_stmts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41081 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index f7f957509c2..8f47768f10f 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -862,7 +862,7 @@ expand_call_inline (tp, walk_subtrees, data) /* Our function now has more statements than it did before. */ DECL_NUM_STMTS (VARRAY_TREE (id->fns, 0)) += DECL_NUM_STMTS (fn); - id->inlined_stmts += DECL_NUM_STMTS (VARRAY_TREE (id->fns, 0)); + id->inlined_stmts += DECL_NUM_STMTS (fn); /* Recurse into the body of the just inlined function. */ expand_calls_inline (inlined_body, id); |